Use the build tags for containers/image everywhere

pull/1881/head
Matt Rickard 2017-08-24 23:47:42 -07:00
parent eb73bad9c5
commit 57aa3e61a9
2 changed files with 2 additions and 2 deletions

2
Makefile Normal file → Executable file
View File

@ -113,7 +113,7 @@ endif
.PHONY: e2e-%-amd64
e2e-%-amd64:
GOOS=$* GOARCH=amd64 go test -c k8s.io/minikube/test/integration --tags=integration -o out/$@
GOOS=$* GOARCH=amd64 go test -c k8s.io/minikube/test/integration --tags="integration container_image_ostree_stub containers_image_openpgp" -o out/$@
e2e-windows-amd64.exe: e2e-windows-amd64
mv $(BUILD_DIR)/e2e-windows-amd64 $(BUILD_DIR)/e2e-windows-amd64.exe

View File

@ -35,7 +35,7 @@ cd ${GOPATH}/src/${REPO_PATH}
rm -f out/$COV_FILE
echo "mode: count" > out/$COV_FILE
for pkg in $(go list -f '{{ if .TestGoFiles }} {{.ImportPath}} {{end}}' ./...); do
go test -v $pkg -covermode=count -coverprofile=out/$COV_TMP_FILE
go test -tags "container_image_ostree_stub containers_image_openpgp" -v $pkg -covermode=count -coverprofile=out/$COV_TMP_FILE
# tail -n +2 skips the first line of the file
# for coverprofile the first line is the `mode: count` line which we only want once in our file
tail -n +2 out/$COV_TMP_FILE >> out/$COV_FILE || (echo "Unable to append coverage for $pkg" && exit 1)