From 98ba464143eee24c390b6693dad506fe0cd7a779 Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Thu, 17 Dec 2020 13:54:26 +0100 Subject: [PATCH] Use the same Docker image to run programs during exams --- go/tests/entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/go/tests/entrypoint.sh b/go/tests/entrypoint.sh index 310d7342a..a6f0b702b 100755 --- a/go/tests/entrypoint.sh +++ b/go/tests/entrypoint.sh @@ -4,6 +4,12 @@ set -e cd student +if test "$EXAM_RUN_ONLY" = true; then + go build -o exe . + ./exe "$@" + exit +fi + if ! test "$SKIP_FORMATTING"; then s=$(goimports -d .) if test "$s"; then