From 379ec38222541015acabf4001b57475e45f75918 Mon Sep 17 00:00:00 2001 From: Anusha Ragunathan Date: Tue, 14 Jun 2016 12:56:38 -0700 Subject: [PATCH] Dont leak DOCKER_INCREMENTAL_BINARY flag into go test. Signed-off-by: Anusha Ragunathan --- hack/make/test-unit | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hack/make/test-unit b/hack/make/test-unit index eee9789662..17a761ef46 100644 --- a/hack/make/test-unit +++ b/hack/make/test-unit @@ -9,6 +9,16 @@ set -e # bundle_test_unit() { TESTFLAGS+=" -test.timeout=${TIMEOUT}" + INCBUILD="-i" + count=0 + for flag in "${BUILDFLAGS[@]}"; do + if [ "${flag}" == ${INCBUILD} ]; then + unset BUILDFLAGS[${count}] + break + fi + count=$[ ${count} + 1 ] + done + date if [ -z "$TESTDIRS" ]; then TEST_PATH=./...