Skip to content

Commit

Permalink
Move DIFF
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Feb 19, 2024
1 parent e1f4d2b commit 15630e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ if [ $run_make = yes ]; then

fi

DIFF=$(which gdiff || which diff)
if $DIFF --help | grep -q -- --color; then
diff_color="--color=always"
fi

rm -rf tmp/tests
mkdir -p tmp/tests

Expand Down Expand Up @@ -213,11 +218,6 @@ function run_test()

printf "\n\n\x1b[33m*** Command: %s ***\x1b[0m\n\n" "$command" > $diffpath

DIFF=$(which gdiff || which diff)
if $DIFF --help | grep -q -- --color; then
diff_color="--color=always"
fi

if $DIFF --text -u $diff_color <(
generate_expected_output $joufile $correct_exit_code | tr -d '\r'
) <(
Expand Down

0 comments on commit 15630e3

Please sign in to comment.