Skip to content

Commit e1a0202

Browse files
test/e2e: Skip some tests that fail on runc
Skip some volume tests that fail on runc since opencontainers/runc#3990 Signed-off-by: Ricardo Branco <[email protected]>
1 parent dedeb24 commit e1a0202

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/e2e/run_volume_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ var _ = Describe("Podman run with volumes", func() {
447447
Expect(separateVolumeSession).Should(ExitCleanly())
448448
Expect(separateVolumeSession.OutputToString()).To(Equal(baselineOutput))
449449

450+
// The remainder of this test fails on runc since https://github.com/opencontainers/runc/pull/3990
451+
if !strings.Contains(podmanTest.OCIRuntime, "crun") {
452+
return
453+
}
454+
450455
copySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol3:/etc/apk:copy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"})
451456
copySession.WaitWithDefaultTimeout()
452457
Expect(copySession).Should(ExitCleanly())
@@ -857,6 +862,10 @@ VOLUME /test/`, ALPINE)
857862
})
858863

859864
It("podman run with --mount and named volume with driver-opts", func() {
865+
// This test fails on runc since https://github.com/opencontainers/runc/pull/3990
866+
if !strings.Contains(podmanTest.OCIRuntime, "crun") {
867+
Skip("Test only works on crun")
868+
}
860869
// anonymous volume mount with driver opts
861870
vol := "type=volume,source=test_vol,dst=/test,volume-opt=type=tmpfs,volume-opt=device=tmpfs,volume-opt=o=nodev"
862871
session := podmanTest.Podman([]string{"run", "--rm", "--mount", vol, ALPINE, "echo", "hello"})

0 commit comments

Comments
 (0)