From 318e97877e7c4db77a3eae4caa302f8b51cc445b Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 7 Dec 2019 01:50:21 +0200 Subject: [PATCH] Cleanup --- test/run-spec-test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/run-spec-test.py b/test/run-spec-test.py index ea19871..11b4bd6 100755 --- a/test/run-spec-test.py +++ b/test/run-spec-test.py @@ -399,7 +399,12 @@ def runInvoke(test): print(output) log.write(f"{test.source}\t|\t{test.wasm} {test.action.field}({', '.join(displayArgs)})\t=>\t\t") - if actual != expect or force_fail: + if actual == expect or (expect == "" and not force_fail): + stats.success += 1 + log.write(f"OK: {actual}\n") + if args.line: + showTestResult() + else: stats.failed += 1 log.write(f"FAIL: {actual}, should be: {expect}\n") if args.silent: return @@ -407,11 +412,6 @@ def runInvoke(test): showTestResult() #sys.exit(1) - else: - stats.success += 1 - log.write(f"OK: {actual}\n") - if args.line: - showTestResult() if not os.path.isdir(coreDir): if not os.path.isdir(specDir):