From cc1387ec0cc04491d4f35e09e526fe54d7237395 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 14 Oct 2015 14:30:35 +0900 Subject: [PATCH] Tests should be run with -race --- build.go | 2 +- build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.go b/build.go index c00d2da18..9f8041072 100644 --- a/build.go +++ b/build.go @@ -186,7 +186,7 @@ func setup() { func test(pkg string) { setBuildEnv() - runPrint("go", "test", "-short", "-timeout", "60s", pkg) + runPrint("go", "test", "-short", "-race", "-timeout", "60s", pkg) } func bench(pkg string) { diff --git a/build.sh b/build.sh index 91af5be42..f7bdf9682 100755 --- a/build.sh +++ b/build.sh @@ -108,7 +108,7 @@ case "${1:-default}" in # For every package in the repo for dir in $(go list ./...) ; do # run the tests - godep go test -coverprofile=profile.out $dir + godep go test -race -coverprofile=profile.out $dir if [ -f profile.out ] ; then # and if there was test output, append it to coverage.out grep -v "mode: set" profile.out >> coverage.out