Skip to contentSkip to conversation

tests: Check existing of /proc/config.gz before use it

PATCH New Vadim Kochan 1 participant 1 message Sep 30, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: Check existing of /proc/config.gz before use it

---
 testsuite/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
testsuite/Makefile +4 -1
index b4ab15e..d1bf359 100644
@@ -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