mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
makefile: quote TESTFLAGS when passing to containerised make
Otherwise TESTFLAGS="-run FooBar" will result in TESTFLAGS=-run being executed in the container. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
committed by
Kir Kolyshkin
parent
a6985522a6
commit
b0c7ce5158
@@ -105,7 +105,7 @@ unittest: runcimage
|
||||
-t --privileged --rm \
|
||||
-v /lib/modules:/lib/modules:ro \
|
||||
-v $(CURDIR):/go/src/$(PROJECT) \
|
||||
$(RUNC_IMAGE) make localunittest TESTFLAGS=$(TESTFLAGS)
|
||||
$(RUNC_IMAGE) make localunittest TESTFLAGS="$(TESTFLAGS)"
|
||||
|
||||
localunittest: all
|
||||
$(GO) test -timeout 3m -tags "$(BUILDTAGS)" $(TESTFLAGS) -v ./...
|
||||
@@ -115,7 +115,7 @@ integration: runcimage
|
||||
-t --privileged --rm \
|
||||
-v /lib/modules:/lib/modules:ro \
|
||||
-v $(CURDIR):/go/src/$(PROJECT) \
|
||||
$(RUNC_IMAGE) make localintegration TESTPATH=$(TESTPATH)
|
||||
$(RUNC_IMAGE) make localintegration TESTPATH="$(TESTPATH)"
|
||||
|
||||
localintegration: all
|
||||
bats -t tests/integration$(TESTPATH)
|
||||
|
||||
Reference in New Issue
Block a user