From e7b43bb6c646f533fde044cce6d8cc5d1e0e9568 Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Wed, 3 Apr 2024 17:55:02 -0400 Subject: [PATCH] add back setup command code --- bin/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/run.sh b/bin/run.sh index eb4f916..7ec6b00 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -29,6 +29,11 @@ TIMEOUT=$((TIMEOUT * 60)) echo "TIMEOUT is $TIMEOUT seconds" echo "MAX_SCORE is $MAX_SCORE" +if [ -n "$SETUP_COMMAND" ]; then + echo "Running setup command: $SETUP_COMMAND" + eval "$SETUP_COMMAND" +fi + timeout "$TIMEOUT" python3 /opt/test-runner/bin/run.py ./ ./autograding_output/ "$MAX_SCORE" exit_status=$? if [ $exit_status -eq 124 ]; then