Browse Source

Remove RC for exam Go exercises

pull/663/head
xpetit 4 years ago
parent
commit
9385acf77d
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 1
      go/exam/Dockerfile
  2. 9
      go/exam/entrypoint.sh

1
go/exam/Dockerfile

@ -4,7 +4,6 @@ ENV GIT_TERMINAL_PROMPT=0
RUN apk add --no-cache git
RUN go get golang.org/x/tools/cmd/goimports
RUN go get github.com/01-edu/z01
RUN go get github.com/01-edu/public/go/tests/rc
COPY --from=mkcert-ca . /usr/local/share/ca-certificates
RUN update-ca-certificates
COPY entrypoint.sh /usr/local/bin

9
go/exam/entrypoint.sh

@ -21,15 +21,6 @@ if test "$s"; then
exit 1
fi
# Check restrictions
if test "$ALLOWED_FUNCTIONS" && test "$EXPECTED_FILES"; then
IFS=' '
# shellcheck disable=SC2086
rc "$first_file" $ALLOWED_FUNCTIONS
IFS='
'
fi
cd
# Run program

Loading…
Cancel
Save