Skip to content

Commit

Permalink
More simplification (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Sep 27, 2023
1 parent fdd21eb commit 694a22d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ for test_dir in tests/*; do
# different test runs (e.g. timing information or paths), you should normalize
# the results file to allow the diff comparison below to work as expected

for file in results.json; do
expected_file="expected_${file}"
echo "${test_dir_name}: comparing ${file} to ${expected_file}"

if ! diff "${test_dir_path}/${file}" "${test_dir_path}/${expected_file}"; then
exit_code=1
fi
done
file="results.json"
expected_file="expected_${file}"
echo "${test_dir_name}: comparing ${file} to ${expected_file}"

if ! diff "${test_dir_path}/${file}" "${test_dir_path}/${expected_file}"; then
exit_code=1
fi
done

exit ${exit_code}

0 comments on commit 694a22d

Please sign in to comment.