test.sh: fix removal of test output files
This commit is contained in:
parent
04bd28abd3
commit
8260604f97
1 changed files with 3 additions and 1 deletions
4
test.sh
4
test.sh
|
@ -35,7 +35,7 @@ for n in $(seq 1 25); do
|
||||||
echo -n "$solution... "
|
echo -n "$solution... "
|
||||||
|
|
||||||
solution_output=$(mktemp)
|
solution_output=$(mktemp)
|
||||||
trap 'rm $solution_output' EXIT
|
trap "rm -f '$solution_output'" EXIT
|
||||||
|
|
||||||
run_solution "$solution" > "$solution_output"
|
run_solution "$solution" > "$solution_output"
|
||||||
|
|
||||||
|
@ -53,5 +53,7 @@ for n in $(seq 1 25); do
|
||||||
else
|
else
|
||||||
echo ok
|
echo ok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm "$solution_output"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue