Skip to content

Commit

Permalink
correctly log failure status
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Jan 9, 2023
1 parent dc92b63 commit 715de89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/tests.e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ echo "running e2e tests"
--grpc-gateway-endpoint="0.0.0.0:8081" \
--avalanchego-path-1=/tmp/avalanchego-v${VERSION_1}/avalanchego \
--avalanchego-path-2=/tmp/avalanchego-v${VERSION_2}/avalanchego \
--subnet-evm-path=/tmp/subnet-evm-v${SUBNET_EVM_VERSION}/subnet-evm || (kill ${PID}; exit)
--subnet-evm-path=/tmp/subnet-evm-v${SUBNET_EVM_VERSION}/subnet-evm
EXIT_CODE=$? # to fail the script if ginkgo failed

kill ${PID}
echo "ALL SUCCESS!"
if [[ ${EXIT_CODE} == 0 ]]; then
echo "ALL SUCCESS!"
fi
exit ${EXIT_CODE}

0 comments on commit 715de89

Please sign in to comment.