From: vadimk Date: Tue, 30 Sep 2014 06:15:10 +0000 (+0300) Subject: tests: Check existing of /proc/config.gz before use it X-Git-Tag: v3.17.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f29543125f05d72ec134951c5a9bec68a09e9ed5;p=thirdparty%2Fiproute2.git tests: Check existing of /proc/config.gz before use it Signed-off-by: Vadim Kochan --- diff --git a/testsuite/Makefile b/testsuite/Makefile index b4ab15e2b..d1bf359ab 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)