add NO_RACE so uts can run faster locally (#1294)

* add NO_RACE so uts can run faster locally

* oops
This commit is contained in:
Darioush Jalali
2024-08-21 09:44:02 -07:00
committed by GitHub
parent 65a42aa98a
commit 986d2faa91
+5 -1
View File
@@ -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)