Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fail fast when a test validator is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher authored Jul 30, 2024
1 parent ce0933a commit 0dad3c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/start-shared-test-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ TEST_VALIDATOR=$( cd "$(dirname "${BASH_SOURCE[0]}")/.." ; pwd -P )/.agave/activ
TEST_VALIDATOR_LEDGER="$( cd "$(dirname "${BASH_SOURCE[0]}")/.." ; pwd -P )/test-ledger"
FIXTURE_ACCOUNTS_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")/fixtures" ; pwd -P)"

if [ ! -x "$TEST_VALIDATOR" ]; then
echo "ERROR: No test validator is installed. Install one using the following command: pnpm test:live-with-test-validator:setup" >&2
exit 1
fi

mkdir -p $LOCK_DIR

(
Expand Down Expand Up @@ -38,4 +43,4 @@ mkdir -p $LOCK_DIR
else
echo "Leaving test validator (PID $validator_pid) running for other lock participants"
fi
) 200>$SHARED_LOCK_FILE
) 200>$SHARED_LOCK_FILE

0 comments on commit 0dad3c7

Please sign in to comment.