From 411becc36baf1f4e13c0ea6ae8e009b0d71559bb Mon Sep 17 00:00:00 2001 From: stvoutsin Date: Fri, 25 Feb 2022 14:51:11 +0200 Subject: [PATCH] Bugfix for cell output validation --- aglais_benchmark/aglais_benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aglais_benchmark/aglais_benchmark.py b/aglais_benchmark/aglais_benchmark.py index 3cd2db6..64186a3 100644 --- a/aglais_benchmark/aglais_benchmark.py +++ b/aglais_benchmark/aglais_benchmark.py @@ -200,8 +200,8 @@ def _run_single(self, iterable=0, concurrent=False): for i, cell in enumerate(output): md5hash = hashlib.md5(str(cell).encode('utf-8')).hexdigest() if md5hash != expected_output.get(str(i),""): - valid = "FALSE" if expected_output.get(str(i),"")!="": + valid = "FALSE" msg += "Expected/Actual output missmatch of cell #" + str(i) + "! " results[name] = {"totaltime" : "{:.2f}".format(totaltime), "status" : status, "msg" : msg, "valid" : valid }