]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tests: Check existing of /proc/config.gz before use it
authorvadimk <vadim4j@gmail.com>
Tue, 30 Sep 2014 06:15:10 +0000 (09:15 +0300)
committerStephen Hemminger <shemming@brocade.com>
Thu, 9 Oct 2014 15:29:39 +0000 (08:29 -0700)
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
testsuite/Makefile

index b4ab15e2b8f9be190729808b3eca48291c07b505..d1bf359ab1beed79897ab67c59e848946ff52582 100644 (file)
@@ -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)