From dccb75bbcff55cb832bf05c2699028c3ecfe0869 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 14 Jan 2020 11:24:12 -0500 Subject: topotest: log results summary at end of lutil run Signed-off-by: Lou Berger --- tests/topotests/lib/lutil.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/topotests/lib/lutil.py') 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') -- cgit v1.2.3