From 42ace0dc225d9f8dd2b51c9adcb406e5ed14b213 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Fri, 4 Aug 2023 14:26:55 +0800 Subject: [PATCH] Update winfstests.py --- contrib/windows/tests/winfstests.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/contrib/windows/tests/winfstests.py b/contrib/windows/tests/winfstests.py index 870e40c0e294..b18e1084b229 100644 --- a/contrib/windows/tests/winfstests.py +++ b/contrib/windows/tests/winfstests.py @@ -227,7 +227,19 @@ def main(): #out = " ".join([str(test), # ret.stdout.decode().splitlines()[-1]]) - out = str(test) + "\n" + "\n".join(ret.stdout.decode().splitlines()) + #out = str(test) + "\n" + "\n".join(ret.stdout.decode().splitlines()) + total = 0 + ok = 0 + notok = 0 + for i in ret.stdout.decode().splitlines(): + if i.startswith('ok'): + total += 1 + ok += 1 + if i.startswith('not ok'): + total += 1 + notok += 1 + out = " ".join([str(test), + ok, "/", total) print(out) log_file.write(out)