Skip to content

Commit

Permalink
temp fix for output artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmonteiro committed Mar 19, 2024
1 parent 396473c commit 16c9185
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,14 @@ def run_with_params(params, mode="cli"):
"result":resultDict})
allPass = False
else:
with open('test_results.json', 'w', encoding='utf-8') as f:
json.dump(resultDict, f, ensure_ascii=False, indent=4)
if isinstance(resultDict, dict):
with open('test_results.json', 'w', encoding='utf-8') as f:
json.dump(resultDict, f, ensure_ascii=False, indent=4)
else:
with open('test_results.json', "w") as f:
for line in resultDict:
f.write(" ".join(line) + "\n")


raise Exception("Comparison between {} and {} failed.".format(\
wkfName, gsWkf.name))
Expand Down

0 comments on commit 16c9185

Please sign in to comment.