From d422789fac136d2ff487ac5ce71ea077d5d3c1d6 Mon Sep 17 00:00:00 2001 From: Binbin Zhang Date: Mon, 23 Aug 2021 11:28:22 +0800 Subject: [PATCH] makefile: Fix error exit status code Generate `config-generated.go` file under src/runtime/cli/containerd-shim-kata-v2 before excuting test or coverage. Fixes #2479 Signed-off-by: Binbin Zhang --- src/runtime/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 479c08b5d7..7226d9764a 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -610,6 +610,7 @@ ifeq ($(shell id -u), 0) endif go-test: $(GENERATED_FILES) + $(QUIET_BUILD)(cd $(SHIMV2_DIR)/ && ln -fs $(GENERATED_CONFIG)) go test -v -mod=vendor ./... check-go-static: @@ -617,6 +618,7 @@ check-go-static: $(QUIET_CHECK)../../ci/go-no-os-exit.sh ./virtcontainers coverage: + $(QUIET_BUILD)(cd $(SHIMV2_DIR)/ && ln -fs $(GENERATED_CONFIG)) go test -v -mod=vendor -covermode=atomic -coverprofile=coverage.txt ./... go tool cover -html=coverage.txt -o coverage.html