mirror of https://github.com/01-edu/public.git
fix(scripting-piscine): fix entrypoint failing some tests
tests were failing when the exercise name didn't match the expected file
This commit is contained in:
parent
0ca79bd387
commit
88d6867500
|
@ -6,7 +6,9 @@ cp -r /app .
|
|||
cp -a student app
|
||||
cd app
|
||||
|
||||
chmod +x "./student/${EXERCISE}.sh"
|
||||
if test -f "./student/${EXERCISE}.sh"; then
|
||||
chmod +x "./student/${EXERCISE}.sh"
|
||||
fi
|
||||
|
||||
if ! test -f "${EXERCISE}_test.sh"; then
|
||||
echo "No test file found for the exercise : $EXERCISE"
|
||||
|
|
Loading…
Reference in New Issue