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=./...