mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-12 21:08:45 +00:00
@@ -80,7 +80,8 @@ _run_tests_with() {
|
|||||||
# local NUM_TESTS=$(echo $TESTS | wc -w)
|
# local NUM_TESTS=$(echo $TESTS | wc -w)
|
||||||
for TEST in ${TESTS[@]}; do
|
for TEST in ${TESTS[@]}; do
|
||||||
local TEST_CMD="$CARGO test $* --lib -- $TEST"
|
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
|
case $? in
|
||||||
0) PASSED=$((PASSED + 1));;
|
0) PASSED=$((PASSED + 1));;
|
||||||
124) echo_err "Test timed out: $TEST_CMD";;
|
124) echo_err "Test timed out: $TEST_CMD";;
|
||||||
|
|||||||
Reference in New Issue
Block a user