diff --git a/js/tests/entrypoint.sh b/js/tests/entrypoint.sh index 9ad4ff37d..6e89170da 100755 --- a/js/tests/entrypoint.sh +++ b/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 diff --git a/sh/tests/entrypoint.sh b/sh/tests/entrypoint.sh index ade91742a..5bede087a 100755 --- a/sh/tests/entrypoint.sh +++ b/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