Add TESTDIRS back
Makes it simpler to test only one package. Was removed by #17491. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: 4a54ab387f4b11310476414f575fb2502970b65d Component: engine
This commit is contained in:
@ -9,11 +9,16 @@ set -e
|
||||
#
|
||||
bundle_test_unit() {
|
||||
date
|
||||
if [ -z "$TESTDIRS" ]; then
|
||||
TEST_PATH=./...
|
||||
else
|
||||
TEST_PATH=./${TESTDIRS}
|
||||
fi
|
||||
pkg_list=$(go list -e \
|
||||
-f '{{if ne .Name "github.com/docker/docker"}}
|
||||
{{.ImportPath}}
|
||||
{{end}}' \
|
||||
"${BUILDFLAGS[@]}" ./... \
|
||||
{{.ImportPath}}
|
||||
{{end}}' \
|
||||
"${BUILDFLAGS[@]}" $TEST_PATH \
|
||||
| grep -v github.com/docker/docker/vendor \
|
||||
| grep -v github.com/docker/docker/integration-cli)
|
||||
go test -cover $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
|
||||
|
||||
Reference in New Issue
Block a user