Skip to content

Commit

Permalink
Print file content only if diff fails (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Nov 2, 2023
1 parent a406a2e commit 15510c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ small-test:
${MAKE} small-test-diff

small-test-diff:
@echo
@echo "Here is the file content, in case a diff fails."
more results-small/*.csv results-small/merges/*.csv results-small/merges_compared/*.csv results-small/merges_tested/*.csv | cat
@echo
python3 test/check_equal_csv.py --actual_folder results-small/ --goal_folder test/small-goal-files/
@echo
diff -x table_run_time.tex -r -U3 test/small-goal-files/tables/all test/small-goal-files/tables/all
diff -x table_run_time.tex -r -U3 test/small-goal-files/tables/all test/small-goal-files/tables/all || (echo && echo "Here is the file content, for which diff failed." && more results-small/*.csv results-small/merges/*.csv results-small/merges_compared/*.csv results-small/merges_tested/*.csv | cat && echo && diff -x table_run_time.tex -r -U3 test/small-goal-files/tables/all test/small-goal-files/tables/all)

gradle-assemble:
./gradlew -q assemble -g ../.gradle/
Expand Down

0 comments on commit 15510c0

Please sign in to comment.