mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user