From 9e8462722ea44913fb2fcb5954f3b47dec3142fd Mon Sep 17 00:00:00 2001 From: Xiretza Date: Thu, 10 Dec 2020 16:28:50 +0100 Subject: [PATCH] test.sh: write errors to stdout stdout is swallowed by the result verification --- test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 6561484..ef52428 100755 --- a/test.sh +++ b/test.sh @@ -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