@@ -230,6 +230,9 @@ def run_test_on_instances(test_file, num_instances, instances):
230
230
injected_globals = ""
231
231
output = [[] for _ in range (num_instances )]
232
232
233
+ if cmd_args .trace_output :
234
+ print ("TRACE {}:" .format ("|" .join (str (i ) for i in instances )))
235
+
233
236
# Start all instances running, in order, waiting until they signal they are ready
234
237
for idx in range (num_instances ):
235
238
append_code = APPEND_CODE_TEMPLATE .format (injected_globals , idx )
@@ -326,10 +329,6 @@ def run_tests(test_files, instances_truth, instances_test):
326
329
# Run test on test instances
327
330
error , skip , output_test = run_test_on_instances (test_file , num_instances , instances_test )
328
331
329
- if cmd_args .show_output :
330
- print ("### TEST ###" )
331
- print (output_test , end = "" )
332
-
333
332
if not skip :
334
333
# Check if truth exists in a file, and read it in
335
334
test_file_expected = test_file + ".exp"
@@ -341,7 +340,11 @@ def run_tests(test_files, instances_truth, instances_test):
341
340
_ , _ , output_truth = run_test_on_instances (
342
341
test_file , num_instances , instances_truth
343
342
)
344
- if cmd_args .show_output :
343
+
344
+ if cmd_args .show_output :
345
+ print ("### TEST ###" )
346
+ print (output_test , end = "" )
347
+ if not skip :
345
348
print ("### TRUTH ###" )
346
349
print (output_truth , end = "" )
347
350
0 commit comments