From f29543125f05d72ec134951c5a9bec68a09e9ed5 Mon Sep 17 00:00:00 2001 From: vadimk Date: Tue, 30 Sep 2014 09:15:10 +0300 Subject: [PATCH] tests: Check existing of /proc/config.gz before use it Signed-off-by: Vadim Kochan --- testsuite/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)