tests: Check existing of /proc/config.gz before use it

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
vadimk 2014-09-30 09:15:10 +03:00 committed by Stephen Hemminger
parent 863ecb04b4
commit f29543125f
1 changed files with 4 additions and 1 deletions

View File

@ -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)