Browse Source

Put back student repository as read-only #4

pull/768/head
xpetit 3 years ago
parent
commit
96cdafc2c5
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 4
      go/tests/entrypoint.sh

4
go/tests/entrypoint.sh

@ -2,6 +2,7 @@
set -e
cp -r /public/go/tests .
cp -a student piscine-go
cd piscine-go
@ -50,6 +51,7 @@ if command -v "${EXERCISE}_test" >/dev/null 2>&1; then
"${EXERCISE}_test"
else
# The exercise is a function
cd "/public/go/tests/func/${EXERCISE}_test"
cd "$HOME/tests/func/${EXERCISE}_test"
go mod edit -replace "student=$HOME/piscine-go"
go run .
fi

Loading…
Cancel
Save