Skip to content

Commit

Permalink
Put each compile output of fixits in a separate file
Browse files Browse the repository at this point in the history
Otherwise we can't debug, as the file only holds output of the
last compiled fixed file
  • Loading branch information
Sergio Martins committed Sep 12, 2015
1 parent 012c598 commit 3ae8647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ def run_check_unit_tests(check):
# If fixits were applied, test they were correctly applied
fixed_files = get_fixed_files()
for fixed_file in fixed_files:
if run_command(_compiler_comand + " " + fixed_file + " > compile_fixed.output 2> compile_fixed.output"):
output_file = fixed_file + ".compile_output"
if run_command(_compiler_comand + " " + fixed_file + " > " + output_file + " 2> " + output_file):
print " [OK] " + fixed_file
else:
print " [FAIL] " + fixed_file + " (Failed to build test. Check " + check + "/compile_fixed.output for details)"
print " [FAIL] " + fixed_file + " (Failed to build test. Check " + check + "/" + output_file + " for details)"
print
result = False

Expand Down

0 comments on commit 3ae8647

Please sign in to comment.