summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/lutil.py
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2020-01-21 17:32:59 +0100
committerGitHub <noreply@github.com>2020-01-21 17:32:59 +0100
commit42440fcfa68efc66df6d90cbf6ce77920b834564 (patch)
tree507b5dcb1c69c16fd6ea7bab0575fdadfdaf92de /tests/topotests/lib/lutil.py
parenta5586bb6be071b1cb661da01e00206a3a42d6d34 (diff)
parentdccb75bbcff55cb832bf05c2699028c3ecfe0869 (diff)
topotest: minor doc, lutil, sharpd not compiled changes (#5675)
topotest: minor doc, lutil, sharpd not compiled changes
Diffstat (limited to 'tests/topotests/lib/lutil.py')
-rwxr-xr-xtests/topotests/lib/lutil.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py
index 7c89ada013..4ea97a3692 100755
--- a/tests/topotests/lib/lutil.py
+++ b/tests/topotests/lib/lutil.py
@@ -336,6 +336,14 @@ def luNumPass():
def luResult(target, success, str, logstr=None):
return LUtil.result(target, success, str, logstr)
+def luShowResults(prFunction):
+ printed = 0
+ sf = open(LUtil.fsum_name, 'r')
+ for line in sf:
+ printed+=1
+ prFunction(line.rstrip())
+ sf.close()
+
def luShowFail():
printed = 0
sf = open(LUtil.fsum_name, 'r')