diff --git a/test.sh b/test.sh index d0269c5..4346363 100755 --- a/test.sh +++ b/test.sh @@ -7,7 +7,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" 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 @@ -18,7 +18,7 @@ run_solution() { python "$solution" < "$input" ;; *) - echo "Error: Unknown solution type: $solution" + echo "Error: Unknown solution type: $solution" >&2 exit 1 ;; esac