add empty out and err columns

This commit is contained in:
Yatsishin Ilya 2020-04-17 11:41:57 +03:00
parent a312cb6b0d
commit ee8e855cbe

View File

@ -22,8 +22,14 @@ def export_testcases_json(report, path):
for el in testcase:
if el.tag == "system-err":
row["stderr"] = el.text
else:
row["stderr"] = ""
if el.tag == "system-out":
row["stdout"] = el.text
else:
row["stdout"] = ""
json.dump(row, testcases_file)
testcases_file.write("\n")