From 3d0e7cb960cc204ed9756ab980c2f69752f548f8 Mon Sep 17 00:00:00 2001 From: Michele Sessa Date: Thu, 12 Jan 2023 16:06:51 +0000 Subject: [PATCH] test(bin-status): fix tests always returning success --- sh/tests/bin-status_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") }