From d9b495ca381b19c7bff452847933a1d74ffa4dab Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Fri, 13 Jul 2018 18:38:50 +0200 Subject: [PATCH] Allow passing TESTFLAGS env to hack/make.sh from make Minor change to allow passing the env TESTFLAGS to make. That's pretty convenient to filter what tests to run. E.g. run integration tests containing the substring `Copy`: make test-integration TESTFLAGS="-check.f Copy" Signed-off-by: Marco Vedovati --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8cb7c3e6..612be6c0 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ endif GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null) DOCKER_IMAGE := skopeo-dev$(if $(GIT_BRANCH),:$(GIT_BRANCH)) # set env like gobuildtag? -DOCKER_FLAGS := docker run --rm -i #$(DOCKER_ENVS) +DOCKER_FLAGS := docker run --rm -i -e TESTFLAGS="$(TESTFLAGS)" #$(DOCKER_ENVS) # if this session isn't interactive, then we don't want to allocate a # TTY, which would fail, but if it is interactive, we do want to attach # so that the user can send e.g. ^C through.