From 58dd28a111abeb7c6533abf619ae2ac374f4f8e9 Mon Sep 17 00:00:00 2001 From: Maru Newby Date: Tue, 7 Nov 2023 16:37:55 +0100 Subject: [PATCH] Minor cleanup to test scripts --- scripts/build_avalanchego.sh | 2 +- scripts/tests.integration.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/build_avalanchego.sh b/scripts/build_avalanchego.sh index 1b6e443b94..2da5db1959 100755 --- a/scripts/build_avalanchego.sh +++ b/scripts/build_avalanchego.sh @@ -2,7 +2,7 @@ set -euo pipefail -# Run AvalancheGo e2e tests from the target version against the current state of coreth. +# Build avalanchego binary from the target version against the current state of coreth. # e.g., # ./scripts/build_avalanchego.sh diff --git a/scripts/tests.integration.sh b/scripts/tests.integration.sh index 3e15cc683e..ec17615cf9 100755 --- a/scripts/tests.integration.sh +++ b/scripts/tests.integration.sh @@ -15,17 +15,17 @@ fi # Allow configuring the clone path to point to an existing clone export AVALANCHEGO_CLONE_PATH="${AVALANCHEGO_CLONE_PATH:-avalanchego}" -echo "building integration.test" -# Install the ginkgo binary (required for test build and run) -go install -v github.com/onsi/ginkgo/v2/ginkgo@v2.1.4 -ACK_GINKGO_RC=true ginkgo build ./tests/integration -./tests/integration/integration.test --help - # Only build avalanchego if using the network fixture if [[ "${@}" =~ "--use-network-fixture" ]]; then ./scripts/build_avalanchego.sh export AVALANCHEGO_PATH="$(realpath ${AVALANCHEGO_PATH:-${AVALANCHEGO_CLONE_PATH}/build/avalanchego})" fi +echo "building integration.test" +# Install the ginkgo binary (required for test build and run) +go install -v github.com/onsi/ginkgo/v2/ginkgo@v2.1.4 +ACK_GINKGO_RC=true ginkgo build ./tests/integration +./tests/integration/integration.test --help + # Execute in random order to identify unwanted dependency ginkgo -v --randomize-all ./tests/integration/integration.test -- "${@}"