Commit f2954312 authored by vadimk's avatar vadimk Committed by Stephen Hemminger

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

Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
parent 863ecb04
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment