mirror of https://github.com/01-edu/public.git
Put back student repository as read-only #4
This commit is contained in:
parent
0d38d78c63
commit
96cdafc2c5
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cp -r /public/go/tests .
|
||||||
cp -a student piscine-go
|
cp -a student piscine-go
|
||||||
cd piscine-go
|
cd piscine-go
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ if command -v "${EXERCISE}_test" >/dev/null 2>&1; then
|
||||||
"${EXERCISE}_test"
|
"${EXERCISE}_test"
|
||||||
else
|
else
|
||||||
# The exercise is a function
|
# 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 .
|
go run .
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue