summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-07-17 17:23:25 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-07-18 13:50:10 +0200
commit44d2a6775bac094a82bdfcae1559ec3db9152a46 (patch)
treeb8b2575f700116fa125e2288def2fb4df4374ac4 /tests
parentMerge pull request #4704 from mjstapp/fix_ip2str_const (diff)
downloadfrr-44d2a6775bac094a82bdfcae1559ec3db9152a46.tar.xz
frr-44d2a6775bac094a82bdfcae1559ec3db9152a46.zip
Test: Add back a bit more debugging to see what is going on
All debug logging has been thrown to the floor in this loop. Add it back in and additionally add a bit more debugging to know what is going on. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/topotests/lib/lutil.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py
index e58b4725e..d3a275d11 100755
--- a/tests/topotests/lib/lutil.py
+++ b/tests/topotests/lib/lutil.py
@@ -245,7 +245,6 @@ Total %-4d %-4d %d\n\
def wait(self, target, command, regexp, op, result, wait, returnJson):
self.log('%s:%s WAIT:%s:%s:%s:%s:%s:%s:' % \
(self.l_filename, self.l_line, target, command, regexp, op, result,wait))
- llevel = LUtil.l_level
found = False
n = 0
startt = time.time()
@@ -253,11 +252,10 @@ Total %-4d %-4d %d\n\
while delta < wait and found is False:
found = self.command(target, command, regexp, op, result, returnJson)
n+=1
- LUtil.l_level = 0
delta = time.time() - startt
+ self.log('\tFound: %s n: %s delta: %s and wait: %s' % (found, n, delta, wait))
if delta < wait and found is False:
time.sleep (0.5)
- LUtil.l_level = llevel
self.log('Done after %d loops, time=%s, Found=%s' % (n, delta, found))
found = self.command(target, command, regexp, 'pass', '%s +%4.2f secs' % (result, delta), returnJson)
return found