Skip to content

Commit

Permalink
fixup: Error message in test scripts when AVALANCHEGO_PATH is set empty
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Aug 28, 2023
1 parent 8320995 commit eb56aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scripts/tests.e2e.persistent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ fi

AVALANCHEGO_PATH="${AVALANCHEGO_PATH:-./build/avalanchego}"
if [[ -z "${AVALANCHEGO_PATH}" ]]; then
echo "Missing AVALANCHEGO_PATH argument!"
echo "Usage: ${0} [AVALANCHEGO_PATH]" >>/dev/stderr
echo "Empty AVALANCHEGO_PATH env var!"
exit 255
fi
# Ensure an absolute path to avoid dependency on the working directory
Expand Down
3 changes: 1 addition & 2 deletions scripts/tests.e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ if [[ -n "${E2E_USE_PERSISTENT_NETWORK}" && -n "${TESTNETCTL_NETWORK_DIR}" ]]; t
else
AVALANCHEGO_PATH="${AVALANCHEGO_PATH:-./build/avalanchego}"
if [[ -z "${AVALANCHEGO_PATH}" ]]; then
echo "Missing AVALANCHEGO_PATH argument!"
echo "Usage: ${0} [AVALANCHEGO_PATH]" >>/dev/stderr
echo "Empty AVALANCHEGO_PATH env var!"
exit 255
fi
echo "running e2e tests against an ephemeral local cluster deployed with ${AVALANCHEGO_PATH}"
Expand Down

0 comments on commit eb56aa5

Please sign in to comment.