mirror of https://github.com/containers/podman.git
Skip tests which fail with CGv1 & runc
* Skip play-kube test when runc is in use #17436 * Skip uid/gidmapping idmapped-volume test #17433 Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
5b4f248a84
commit
197529f084
|
@ -679,6 +679,13 @@ func checkReason(reason string) {
|
|||
}
|
||||
}
|
||||
|
||||
func SkipIfRunc(p *PodmanTestIntegration, reason string) {
|
||||
checkReason(reason)
|
||||
if p.OCIRuntime == "runc" {
|
||||
Skip("[runc]: " + reason)
|
||||
}
|
||||
}
|
||||
|
||||
func SkipIfRootlessCgroupsV1(reason string) {
|
||||
checkReason(reason)
|
||||
if isRootless() && !CGROUPSV2 {
|
||||
|
|
|
@ -4700,6 +4700,7 @@ ENV OPENJ9_JAVA_OPTIONS=%q
|
|||
})
|
||||
|
||||
It("podman play kube with disabled cgroup", func() {
|
||||
SkipIfRunc(podmanTest, "Test not supported with runc, see issue #17436")
|
||||
conffile := filepath.Join(podmanTest.TempDir, "container.conf")
|
||||
// Disabled ipcns and cgroupfs in the config file
|
||||
// Since shmsize (Inherit from infra container) cannot be set if ipcns is "host", we should remove the default value.
|
||||
|
|
|
@ -110,7 +110,7 @@ var _ = Describe("Podman UserNS support", func() {
|
|||
|
||||
It("podman uidmapping and gidmapping with an idmapped volume", func() {
|
||||
Skip("it depends on a breaking change in crun: https://github.com/containers/crun/pull/1147")
|
||||
|
||||
SkipIfRunc(podmanTest, "Test not supported yet with runc, see issue #17433")
|
||||
session := podmanTest.Podman([]string{"run", "--uidmap=0:1:500", "--gidmap=0:200:5000", "-v", "my-foo-volume:/foo:Z,idmap", "alpine", "stat", "-c", "#%u:%g#", "/foo"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
if strings.Contains(session.ErrorToString(), "Operation not permitted") {
|
||||
|
|
Loading…
Reference in New Issue