aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorvadimk <vadim4j@gmail.com>2014-09-30 09:15:10 +0300
committerStephen Hemminger <shemming@brocade.com>2014-10-09 08:29:39 -0700
commitf29543125f05d72ec134951c5a9bec68a09e9ed5 (patch)
treec94ecc7593afbe5003065b7292adbfe002755115 /testsuite
parent863ecb04b4f7bd49fb40e4914ea22096be6db6bf (diff)
downloadiproute2-f29543125f05d72ec134951c5a9bec68a09e9ed5.tar.gz
tests: Check existing of /proc/config.gz before use it
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/Makefile b/testsuite/Makefile
index b4ab15e2..d1bf359a 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -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)