From ccd119c098d56ec847f1c3c43c7b3438c548a8f0 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 11 Aug 2023 16:04:25 +0100 Subject: [PATCH] fix(entrypoint): correct path to the exercise that is being tested --- js/tests/entrypoint.sh | 2 +- sh/tests/entrypoint.sh | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) 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