]> git.puffer.fish Git - mirror/frr.git/commit
topotest: fix Lou's framework command wait
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 18 Jul 2019 13:56:50 +0000 (10:56 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 23 Jul 2019 13:26:15 +0000 (10:26 -0300)
commit2a76b0a8e24d291b2331a4dd05e70a80ef57426b
tree723ee60eb5531984ca29929971cf8083056e42c4
parentdfd15ebfa6b648cedc340bc46f41a3bbb5076440
topotest: fix Lou's framework command wait

Fix two main issues:

  * Don't use float to figure out if we spent the time user asked;
  * Don't depend on system clock to find we reached the end of time;

The fix is basically pre caculating the amount of wait cycles we are
going to peform and use a counter.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
tests/topotests/lib/lutil.py