diff --git a/demos/tests/run_tests.py b/demos/tests/run_tests.py index e05391cd379..079af98de3c 100755 --- a/demos/tests/run_tests.py +++ b/demos/tests/run_tests.py @@ -338,8 +338,7 @@ def option_to_args(key, value): exit_msg = f'Exit code: {e.returncode}\n' elif isinstance(e, subprocess.TimeoutExpired): exit_msg = f'Command timed out after {e.timeout} seconds\n' - output += exit_msg - print(output) + print('{}\n{}'.format(output, exit_msg)) failed_tests.append(test_descr + '\n' + exit_msg) num_failures += 1 execution_time = -1