Skip to content

Commit

Permalink
add back setup command code
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Apr 3, 2024
1 parent 954bf3f commit e7b43bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7b43bb

Please sign in to comment.