test.sh: write errors to stdout

stdout is swallowed by the result verification
This commit is contained in:
Xiretza 2020-12-10 16:28:50 +01:00
parent 70cc669fbc
commit 9e8462722e

View file

@ -9,7 +9,7 @@ YEAR=2020
run_solution() {
if [ -d "$solution" ]; then
runfile=$solution/run.sh
[ -f "$runfile" ] || { echo "Error: $runfile not found"; exit 1; }
[ -f "$runfile" ] || { echo "Error: $runfile not found" >&2; exit 1; }
"$runfile" "$input"
else
case "$(basename "$solution")" in
@ -20,7 +20,7 @@ run_solution() {
python "$solution" < "$input"
;;
*)
echo "Error: Unknown solution type: $solution"
echo "Error: Unknown solution type: $solution" >&2
exit 1
;;
esac