Browse Source

fix(scripting-piscine): fix entrypoint failing some tests

tests were failing when the exercise name didn't match the expected file
pull/1919/head
Michele Sessa 1 year ago committed by Michele
parent
commit
88d6867500
  1. 4
      sh/tests/entrypoint.sh

4
sh/tests/entrypoint.sh

@ -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…
Cancel
Save