diff --git a/sh/tests/bin-status_test.sh b/sh/tests/bin-status_test.sh index e22682d4e..b7a960170 100755 --- a/sh/tests/bin-status_test.sh +++ b/sh/tests/bin-status_test.sh @@ -9,8 +9,8 @@ FILENAME="student/bin-status.sh" challenge() { - submitted=$(eval "$1" ; bash $FILENAME) - expected=$(eval "$1" ; bash solutions/bin-status.sh) + submitted=$(eval "$@" >/dev/null 2>&1 ; source $FILENAME) + expected=$(eval "$@" >/dev/null 2>&1 ; source solutions/bin-status.sh) diff <(echo "$submitted") <(echo "$expected") }