diff --git a/hack/make/test-unit b/hack/make/test-unit index 0666a6c82a..91a853309b 100644 --- a/hack/make/test-unit +++ b/hack/make/test-unit @@ -56,7 +56,7 @@ go_run_test_dir() { echo echo '+ go test' $TESTFLAGS "github.com/dotcloud/docker${dir#.}" precompiled="$DEST/precompiled/$dir.test" - if ! "$precompiled"; then + if ! ( cd "$dir" && "$precompiled" ); then TESTS_FAILED+=("$dir") echo echo "${RED}Tests failed: $dir${TEXTRESET}"