diff --git a/sh/tests/grades_test.sh b/sh/tests/grades_test.sh index 1f6a1bda1..2d51ff740 100755 --- a/sh/tests/grades_test.sh +++ b/sh/tests/grades_test.sh @@ -5,8 +5,9 @@ IFS=' script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd) challenge() { - args=$1 - input=$2 + + input="${@: -1}" + args=${@:1:$#-1} submitted=$( bash -c ""$script_dirS"/student/grades.sh $args" <