Skip to content

Commit 21fae3c

Browse files
chentexmohit-sheth
authored andcommitted
Revert hidding on stdout
Signed-off-by: Vicente Zepeda Mas <vzepedam@redhat.com>
1 parent c220102 commit 21fae3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,11 @@ def print_json(logger, kwargs, results: TestResults, results_pull: TestResults,
424424
"periodic_avg": json.loads(average_values),
425425
"pull": json.loads(output_pull.get(test_name)),
426426
}
427+
print(json.dumps(results_json, indent=2))
427428
with open(output_file_name, 'w', encoding="utf-8") as file:
428429
file.write(json.dumps(results_json, indent=2))
429430
else:
431+
print(result_table)
430432
with open(output_file_name, 'w', encoding="utf-8") as file:
431433
file.write(str(result_table))
432434
logger.info("Output saved to %s", output_file_name)
@@ -461,6 +463,7 @@ def print_junit(logger, kwargs, results: TestResults, results_pull: TestResults,
461463
xml_str = ET.tostring(testsuites, encoding="utf8", method="xml").decode()
462464
dom = xml.dom.minidom.parseString(xml_str)
463465
pretty_xml_as_string = dom.toprettyxml()
466+
print(pretty_xml_as_string)
464467
output_file_name = f"{os.path.splitext(kwargs['save_output_path'])[0]}.{get_output_extension(kwargs['output_format'])}"
465468
with open(output_file_name, 'w', encoding="utf-8") as file:
466469
file.write(str(pretty_xml_as_string))

0 commit comments

Comments
 (0)