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:
Michele Sessa 2023-03-29 13:17:40 +01:00 committed by Michele
parent 0ca79bd387
commit 88d6867500
1 changed files with 3 additions and 1 deletions

View File

@ -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"