make: fix unit-tests

The comma character should be put into the argument value by variable
substitution.

Update #10045
This commit is contained in:
Andrei Vagin
2024-02-23 12:05:37 -08:00
parent dea1155b1d
commit 6c5e48c7c3
+4 -1
View File
@@ -24,6 +24,7 @@ header = echo --- $(1) >&2
EMPTY :=
SPACE := $(EMPTY) $(EMPTY)
SHELL = /bin/bash
COMMA := ,
## usage: make <target>
## or
@@ -216,8 +217,10 @@ nogo-tests:
# For unit tests, we take everything in the root, pkg/... and tools/..., and
# pull in all directories in runsc except runsc/container.
#
# FIXME(gvisor.dev/issue/10045): Need to fix broken tests.
unit-tests: ## Local package unit tests in pkg/..., tools/.., etc.
@$(call test,'--test_tag_filters=-nogo,-requires-kvm' //:all pkg/... tools/... runsc/... vdso/... test/trace/...)
@$(call test,--test_tag_filters=-nogo$(COMMA)-requires-kvm -- //:all pkg/... tools/... runsc/... vdso/... test/trace/... -//pkg/metric:metric_test -//pkg/coretag:coretag_test -//runsc/config:config_test -//tools/tracereplay:tracereplay_test -//test/trace:trace_test)
.PHONY: unit-tests
# See unit-tests: this includes runsc/container.