mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
ginkgo testing: fix podman usernamespace join
When there is a podman pause process running the local podman ginkgo tests will join the usernamespace. This because pkg/rootless will automatically join the ns on startup when possible. To fix this we need to use the remote build tag which disables that behavior. However since the remote tag is also used in the e2e test itself we would always run remote tests which is wrong, this is fixed by using a new `remote_testing` tag for the test. see discussion here: https://github.com/containers/podman/pull/16309#discussion_r1006166930 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
4
Makefile
4
Makefile
@ -539,7 +539,7 @@ test: localunit localintegration remoteintegration localsystem remotesystem ##
|
||||
.PHONY: ginkgo-run
|
||||
ginkgo-run:
|
||||
ACK_GINKGO_RC=true ginkgo version
|
||||
ACK_GINKGO_RC=true ginkgo -v $(TESTFLAGS) -tags "$(TAGS)" $(GINKGOTIMEOUT) -cover -flakeAttempts 3 -progress -trace -noColor -nodes $(GINKGONODES) -debug $(GINKGOWHAT) $(HACK)
|
||||
ACK_GINKGO_RC=true ginkgo -v $(TESTFLAGS) -tags "$(TAGS) remote" $(GINKGOTIMEOUT) -cover -flakeAttempts 3 -progress -trace -noColor -nodes $(GINKGONODES) -debug $(GINKGOWHAT) $(HACK)
|
||||
|
||||
.PHONY: ginkgo
|
||||
ginkgo:
|
||||
@ -547,7 +547,7 @@ ginkgo:
|
||||
|
||||
.PHONY: ginkgo-remote
|
||||
ginkgo-remote:
|
||||
$(MAKE) ginkgo-run TAGS="$(REMOTETAGS)" HACK=
|
||||
$(MAKE) ginkgo-run TAGS="$(REMOTETAGS) remote_testing" HACK=
|
||||
|
||||
.PHONY: localintegration
|
||||
localintegration: test-binaries ginkgo
|
||||
|
@ -1,5 +1,5 @@
|
||||
//go:build remote
|
||||
// +build remote
|
||||
//go:build remote_testing
|
||||
// +build remote_testing
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//go:build !remote
|
||||
// +build !remote
|
||||
//go:build !remote_testing
|
||||
// +build !remote_testing
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//go:build !remote
|
||||
// +build !remote
|
||||
//go:build !remote_testing
|
||||
// +build !remote_testing
|
||||
|
||||
// build for play kube is not supported on remote yet.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//go:build !remote
|
||||
// +build !remote
|
||||
//go:build !remote_testing
|
||||
// +build !remote_testing
|
||||
|
||||
package integration
|
||||
|
||||
|
Reference in New Issue
Block a user