From 6d9ae6316705944224d7298e3a42c9514b99052f Mon Sep 17 00:00:00 2001 From: Rob Dimsdale Date: Mon, 24 Aug 2015 14:17:58 -0700 Subject: [PATCH] Run tests with race flag and CGO_ENABLED=1 - CGO_ENABLED is required by the race detection. Even though CGO_ENABLED seems to hang around after ginkgo is run, the resultant binary still seems to run fine. [#101623472] Signed-off-by: Evan Short --- scripts/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test b/scripts/test index 750154d..c51c63f 100755 --- a/scripts/test +++ b/scripts/test @@ -1,7 +1,7 @@ #!/bin/bash # vim: set ft=sh -set -e +set -eu export GOPATH=$PWD/gopath export PATH=$GOPATH/bin:$PATH @@ -13,6 +13,6 @@ export PATH=${PWD}/Godeps/_workspace/bin:$PATH go install github.com/onsi/ginkgo/ginkgo -ginkgo -r -p "$@" +CGO_ENABLED=1 ginkgo -race -r -p "$@" ./scripts/build