Merge branch 'grade-script' into 'main'

Modify grade time

See merge request kaist-cp-class/cs220-private!33
This commit is contained in:
Woojin Lee
2023-09-19 02:56:14 +00:00

View File

@@ -80,7 +80,8 @@ _run_tests_with() {
# local NUM_TESTS=$(echo $TESTS | wc -w)
for TEST in ${TESTS[@]}; do
local TEST_CMD="$CARGO test $* --lib -- $TEST"
timeout ${TIMEOUT:-20s} bash -c "$TEST_CMD 2> /dev/null" 1>&2
# card_game in Assignment12 takes 20 seconds.
timeout ${TIMEOUT:-22s} bash -c "$TEST_CMD 2> /dev/null" 1>&2
case $? in
0) PASSED=$((PASSED + 1));;
124) echo_err "Test timed out: $TEST_CMD";;