diff options
| author | Lou Berger <lberger@labn.net> | 2018-04-27 14:00:23 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-27 20:22:14 -0500 |
| commit | c941311fef4f080854296c0b25fb8eb747c48b97 (patch) | |
| tree | 5eaa58c3eacb3ff67d5cca4197da922494a02ee7 /tests/topotests/lib/lutil.py | |
| parent | 8e1bb0b70781f08418ddc70a1acc931bd6d1fc29 (diff) | |
lib: lutil - fix test numbering, add test number to command logging
Diffstat (limited to 'tests/topotests/lib/lutil.py')
| -rwxr-xr-x | tests/topotests/lib/lutil.py | 8 |
1 files 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)) |
