Skip to content

Commit

Permalink
e2e: Ensure e2e.test is built with portable BLST (#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
marun authored Jul 19, 2023
1 parent febd3b5 commit 249a0b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/install_anr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ AVALANCHE_PATH=$(
cd .. && pwd
)

# Load the constants
source "$AVALANCHE_PATH"/scripts/constants.sh

#################################
# download avalanche-network-runner
# https://github.com/ava-labs/avalanche-network-runner
Expand Down
6 changes: 6 additions & 0 deletions scripts/tests.e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ echo "installing avalanche-network-runner"
ANR_WORKDIR="/tmp"
./scripts/install_anr.sh

# Sourcing constants.sh ensures that the necessary CGO flags are set to
# build the portable version of BLST. Without this, ginkgo may fail to
# build the test binary if run on a host (e.g. github worker) that lacks
# the instructions to build non-portable BLST.
source ./scripts/constants.sh

#################################
echo "building e2e.test"
# to install the ginkgo binary (required for test build and run)
Expand Down
6 changes: 6 additions & 0 deletions scripts/tests.upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ echo "installing avalanche-network-runner"
ANR_WORKDIR="/tmp"
./scripts/install_anr.sh

# Sourcing constants.sh ensures that the necessary CGO flags are set to
# build the portable version of BLST. Without this, ginkgo may fail to
# build the test binary if run on a host (e.g. github worker) that lacks
# the instructions to build non-portable BLST.
source ./scripts/constants.sh

#################################
echo "building upgrade.test"
# to install the ginkgo binary (required for test build and run)
Expand Down

0 comments on commit 249a0b1

Please sign in to comment.