Skip to content

Commit

Permalink
CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Oct 15, 2024
1 parent caf0046 commit 744eac6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/test-canisters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 744eac6

Please sign in to comment.