Skip to content

Commit

Permalink
Better temp file names
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Apr 5, 2024
1 parent 1812047 commit a58aed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ for test_dir in tests/*/*; do
file="results.json"
expected_file="expected_${file}"

tmp_results_file=$(mktemp)
tmp_expected_results_file=$(mktemp)
tmp_results_file=$(mktemp -t results.json)
tmp_expected_results_file=$(mktemp -t expected_results.json)
jq '.' "${test_dir_path}/${file}" > "${tmp_results_file}"
jq '.' "${test_dir_path}/${expected_file}" > "${tmp_expected_results_file}"

Expand Down

0 comments on commit a58aed1

Please sign in to comment.