1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix precompiled unit tests needing their "testdata" contents

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
Tianon Gravi 2014-07-09 16:43:57 -06:00 committed by Tibor Vass
parent 81e78db507
commit 0a7cd70924

View file

@ -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}"