[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1412057710-6038-1-git-send-email-vadim4j@gmail.com>
Date: Tue, 30 Sep 2014 09:15:10 +0300
From: Vadim Kochan <vadim4j@...il.com>
To: netdev@...r.kernel.org
Cc: Vadim Kochan <vadim4j@...il.com>
Subject: [PATCH iproute2] tests: Check existing of /proc/config.gz before use it
Signed-off-by: Vadim Kochan <vadim4j@...il.com>
---
testsuite/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/testsuite/Makefile b/testsuite/Makefile
index b4ab15e..d1bf359 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)
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists