From: Lou Berger Date: Wed, 20 Dec 2017 13:38:13 +0000 (-0500) Subject: lib: lutil - make it easier to spot command output and null output X-Git-Tag: frr-7.1-dev~151^2~182 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=50b15737c98dd8d99dc2db10620c5324ea1c7b0e;p=matthieu%2Ffrr.git lib: lutil - make it easier to spot command output and null output Signed-off-by: Lou Berger --- diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py index 5fbd7cd895..8ecaf98d89 100755 --- a/tests/topotests/lib/lutil.py +++ b/tests/topotests/lib/lutil.py @@ -176,7 +176,11 @@ Total %-4d %-4d %d\n\ return False #self.log("Running %s %s" % (target, command)) out = self.net[target].cmd(command).rstrip() - self.log('out:%s:' % out) + if len(out) == 0: + report = "" + else: + report = out + self.log('COMMAND OUTPUT:%s:' % report) out = " ".join(out.splitlines()) search = re.search(regexp, out) self.l_last = search