netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] tests: Check existing of /proc/config.gz before use it
@ 2014-09-30  6:15 Vadim Kochan
  0 siblings, 0 replies; only message in thread
From: Vadim Kochan @ 2014-09-30  6:15 UTC (permalink / raw)
  To: netdev; +Cc: Vadim Kochan

Signed-off-by: Vadim Kochan <vadim4j@gmail.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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-30  6:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30  6:15 [PATCH iproute2] tests: Check existing of /proc/config.gz before use it Vadim Kochan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).