update
This commit is contained in:
parent
b00e438c35
commit
b0a87bd25d
@ -1,15 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# basic map-reduce test
|
||||
# map-reduce tests
|
||||
#
|
||||
|
||||
RACE=
|
||||
# comment this out to run the tests without the Go race detector.
|
||||
RACE=-race
|
||||
|
||||
if [ "$OSTYPE" != "darwin" ]
|
||||
if [ "$OSTYPE" = "darwin" ]
|
||||
then
|
||||
# comment this out to run the tests without the Go race detector.
|
||||
RACE=-race
|
||||
if go version | grep 'go1.17.[012345]'
|
||||
then
|
||||
# -race with plug-ins on x86 MacOS 12 with
|
||||
# go1.17 before 1.17.6 sometimes crash.
|
||||
RACE=
|
||||
echo '*** Turning off -race since it may not work on a Mac'
|
||||
echo ' with ' `go version`
|
||||
fi
|
||||
fi
|
||||
|
||||
# run the test in a fresh sub-directory.
|
||||
|
Loading…
Reference in New Issue
Block a user