tests: Check existing of /proc/config.gz before use it
Subsystems (2)
PATCH 1/1 tests: Check existing of /proc/config.gz before use it
Signed-off-by Vadim Kochan <[email protected]>
--- testsuite/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
testsuite/Makefile +4 -1
@@ -6,7 +6,10 @@ RESULTS_DIR := results TESTS := $(patsubst tests/%,%,$(wildcard tests/*.t)) IPVERS := $(filter-out iproute2/Makefile,$(wildcard iproute2/*)) -KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG) + +ifneq (,$(wildcard /proc/config.gz)) + KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG) +endif .PHONY: compile listtests alltests configure $(TESTS)
Signature · 1 line
2.1.0