From c941311fef4f080854296c0b25fb8eb747c48b97 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Fri, 27 Apr 2018 14:00:23 -0400 Subject: [PATCH] lib: lutil - fix test numbering, add test number to command logging --- tests/topotests/lib/lutil.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py index fe13491483..9be6505eeb 100755 --- a/tests/topotests/lib/lutil.py +++ b/tests/topotests/lib/lutil.py @@ -81,6 +81,7 @@ Test Target Summary Pass Fail\n f = 1 p = 0 self.l_fail += 1 + self.l_total += 1 res = "%-4d %-6s %-56s %-4d %d" % (self.l_total, target, str, p, f) self.log ('R:'+res) self.summary(res) @@ -178,10 +179,9 @@ Total %-4d %-4d %d\n\ global net if op != 'wait': self.l_line += 1 - if op == 'pass' or op == 'fail': - self.l_total += 1 - self.log('%s:%s COMMAND:%s:%s:%s:%s:%s:' % \ - (self.l_filename, self.l_line, target, command, regexp, op, result)) + self.log('(#%d) %s:%s COMMAND:%s:%s:%s:%s:%s:' % \ + (self.l_total+1, + self.l_filename, self.l_line, target, command, regexp, op, result)) if self.net == '': return False #self.log("Running %s %s" % (target, command)) -- 2.39.5