mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
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 <binbin36520@gmail.com>
This commit is contained in:
parent
cfd539dc6c
commit
d422789fac
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user