tests: Check existing of /proc/config.gz before use it
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
parent
863ecb04b4
commit
f29543125f
|
|
@ -6,7 +6,10 @@ RESULTS_DIR := results
|
||||||
|
|
||||||
TESTS := $(patsubst tests/%,%,$(wildcard tests/*.t))
|
TESTS := $(patsubst tests/%,%,$(wildcard tests/*.t))
|
||||||
IPVERS := $(filter-out iproute2/Makefile,$(wildcard iproute2/*))
|
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)
|
.PHONY: compile listtests alltests configure $(TESTS)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue