diff --git a/test/Makefile b/test/Makefile index 7564a07ad..6116c5fe1 100644 --- a/test/Makefile +++ b/test/Makefile @@ -88,6 +88,7 @@ coverage: check-go-version $(COVERAGE_BINARIES) $(TEST_PAYLOAD) pkill -9 piggie; \ } cd crit/ && GOCOVERDIR=${COVERAGE_PATH} ./crit-test.coverage + $(MAKE) -C crit/ unit-test GOCOVERDIR=${COVERAGE_PATH} GOFLAGS="-cover" $(MAKE) -C crit/ clean # Print coverage from this run $(GO) tool covdata percent -i=${COVERAGE_PATH} diff --git a/test/crit/Makefile b/test/crit/Makefile index da7e3d4ce..a5a3d8bb8 100644 --- a/test/crit/Makefile +++ b/test/crit/Makefile @@ -5,7 +5,7 @@ CRIU ?= criu all: unit-test integration-test e2e-test clean unit-test: test-imgs - go test -v ./... + go test ${GOFLAGS} -v ./... integration-test: test-imgs crit-test @echo "Running integration test"