hack/make: fix test-unit target to propogate TESTFLAGS properly

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Upstream-commit: 9a2d4e92730a576a05e40f7575a6c90512896e87
Component: engine
This commit is contained in:
Erik Hollensbe
2014-08-27 12:21:56 -07:00
parent bc07761e2a
commit 4444b40c84

View File

@ -56,7 +56,7 @@ go_run_test_dir() {
echo
echo '+ go test' $TESTFLAGS "${DOCKER_PKG}${dir#.}"
precompiled="$DEST/precompiled/$dir.test"
if ! ( cd "$dir" && "$precompiled" ); then
if ! ( cd "$dir" && "$precompiled" $TESTFLAGS ); then
TESTS_FAILED+=("$dir")
echo
echo "${RED}Tests failed: $dir${TEXTRESET}"