mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
lib: lutil - fix test numbering, add test number to command logging
This commit is contained in:
parent
8e1bb0b707
commit
c941311fef
@ -81,6 +81,7 @@ Test Target Summary Pass Fail\n
|
|||||||
f = 1
|
f = 1
|
||||||
p = 0
|
p = 0
|
||||||
self.l_fail += 1
|
self.l_fail += 1
|
||||||
|
self.l_total += 1
|
||||||
res = "%-4d %-6s %-56s %-4d %d" % (self.l_total, target, str, p, f)
|
res = "%-4d %-6s %-56s %-4d %d" % (self.l_total, target, str, p, f)
|
||||||
self.log ('R:'+res)
|
self.log ('R:'+res)
|
||||||
self.summary(res)
|
self.summary(res)
|
||||||
@ -178,10 +179,9 @@ Total %-4d %-4d %d\n\
|
|||||||
global net
|
global net
|
||||||
if op != 'wait':
|
if op != 'wait':
|
||||||
self.l_line += 1
|
self.l_line += 1
|
||||||
if op == 'pass' or op == 'fail':
|
self.log('(#%d) %s:%s COMMAND:%s:%s:%s:%s:%s:' % \
|
||||||
self.l_total += 1
|
(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.l_filename, self.l_line, target, command, regexp, op, result))
|
|
||||||
if self.net == '':
|
if self.net == '':
|
||||||
return False
|
return False
|
||||||
#self.log("Running %s %s" % (target, command))
|
#self.log("Running %s %s" % (target, command))
|
||||||
|
Loading…
Reference in New Issue
Block a user