Skip to content

Commit

Permalink
add NO_RACE so uts can run faster locally (#1294)
Browse files Browse the repository at this point in the history
* add NO_RACE so uts can run faster locally

* oops
  • Loading branch information
darioush authored Aug 21, 2024
1 parent cbca34c commit 00f309a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ source "$SUBNET_EVM_PATH"/scripts/constants.sh
# We pass in the arguments to this script directly to enable easily passing parameters such as enabling race detection,
# parallelism, and test coverage.
# DO NOT RUN tests from the top level "tests" directory since they are run by ginkgo
race="-race"
if [[ -n "${NO_RACE:-}" ]]; then
race=""
fi
# shellcheck disable=SC2046
go test -shuffle=on -race -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic "$@" $(go list ./... | grep -v github.com/ava-labs/subnet-evm/tests)
go test -shuffle=on "${race}" -timeout="${TIMEOUT:-600s}" -coverprofile=coverage.out -covermode=atomic "$@" $(go list ./... | grep -v github.com/ava-labs/subnet-evm/tests)

0 comments on commit 00f309a

Please sign in to comment.