mirror of
https://github.com/containers/skopeo.git
synced 2025-07-02 01:22:24 +00:00
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 <mvedovati@suse.com>
This commit is contained in:
parent
6b93d4794f
commit
d9b495ca38
2
Makefile
2
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.
|
||||
|
Loading…
Reference in New Issue
Block a user