From 744eac6e322e0a5728d532624b91223a015dab13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Tue, 15 Oct 2024 15:12:17 +0200 Subject: [PATCH] CR changes --- scripts/test-canisters.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/test-canisters.sh b/scripts/test-canisters.sh index 31d653e8aa..1b912d74b0 100755 --- a/scripts/test-canisters.sh +++ b/scripts/test-canisters.sh @@ -6,12 +6,9 @@ POCKET_IC_SERVER_PATH="pocket-ic" PREVIOUS_II_WASM_PATH="internet_identity_previous.wasm.gz" PREVIOUS_ARCHIVE_WASM_PATH="archive_previous.wasm.gz" -# Check if the script is run from the root of the project -project_root=$(git rev-parse --show-toplevel 2>/dev/null) -if [ "$project_root" != "$(pwd)" ]; then - echo "Please run this script from the root of the project." - exit 1 -fi +# Run the script from the main directory +SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd "$SCRIPTS_DIR/.." RUNNER_OS=${RUNNER_OS:-} if [[ $OSTYPE == "linux-gnu"* ]] || [[ $RUNNER_OS == "Linux" ]]; then