Browse Source

fix(entrypoint): correct path to the exercise that is being tested

pull/2137/head
lee 1 year ago committed by LEEDASILVA
parent
commit
ccd119c098
  1. 2
      js/tests/entrypoint.sh
  2. 10
      sh/tests/entrypoint.sh

2
js/tests/entrypoint.sh

@ -3,7 +3,7 @@
set -e
if test "$CODE_EDITOR_RUN_ONLY" = true; then
node "${EXERCISE}.js" "$@"
node "/jail/student/${EXERCISE}.js" "$@"
exit
fi

10
sh/tests/entrypoint.sh

@ -6,16 +6,6 @@ cp -r /app .
cp -a student app
cd app
if test "$CODE_EDITOR_RUN_ONLY" = true; then
if test -f "./${EXERCISE}.sh"; then
chmod +x "./${EXERCISE}.sh"
fi
# run shell programs on the code editor
bash "./${EXERCISE}.sh" "$@"
exit
fi
if test -f "./student/${EXERCISE}.sh"; then
chmod +x "./student/${EXERCISE}.sh"
fi

Loading…
Cancel
Save