From 5df7e204e33c56d5378f17f2e691b302a2984ada Mon Sep 17 00:00:00 2001 From: woojin Date: Wed, 23 Aug 2023 16:02:10 +0900 Subject: [PATCH] minor fix --- scripts/grade.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/scripts/grade.sh b/scripts/grade.sh index 9aef428..bd21614 100755 --- a/scripts/grade.sh +++ b/scripts/grade.sh @@ -9,23 +9,21 @@ BASEDIR=$(dirname "$0") source $BASEDIR/test_cases.sh source $BASEDIR/grade-utils.sh -RUNNERS="cargo" +RUNNER="cargo" # Lints. run_linters || exit 0 # Executes test for each runner. -for RUNNER in "${RUNNERS[@]}"; do - echo "Running with $RUNNER..." - echo "Below lines will show only failed tests." +echo "Running with $RUNNER..." +echo "Below lines will show only failed tests." - ASSIGNMENT=$(printf "assignment%02d" $1) - TEST_NAME=$(printf "TEST%02d" $1) - TESTS=$(get_test_cases $TEST_NAME) +ASSIGNMENT=$(printf "assignment%02d" $1) +TEST_NAME=$(printf "TEST%02d" $1) +TESTS=$(get_test_cases $TEST_NAME) - # Runs tests. - SCORE=$(run_tests) -done +# Runs tests. +SCORE=$(run_tests) echo Your score: ${SCORE}