From fb73121c4c1a5d1363ed29327c3df506d696d102 Mon Sep 17 00:00:00 2001 From: Toshiki Sonoda Date: Wed, 4 Jan 2023 15:34:37 +0900 Subject: [PATCH] e2e: fix run_volume_test When SELinux is running in enforcing mode, this test needs to add an suffix :Z to the volume mount. Signed-off-by: Toshiki Sonoda --- test/e2e/run_volume_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index ba635333fd..a642fd619b 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -159,7 +159,7 @@ var _ = Describe("Podman run with volumes", func() { Expect(err).ToNot(HaveOccurred(), "os.Create(testfile)") f.Close() Expect(err).ToNot(HaveOccurred()) - session := podmanTest.Podman([]string{"run", "-v", fmt.Sprintf("%s:/data", mountPath), REDIS_IMAGE, "ls", "/data/test1"}) + session := podmanTest.Podman([]string{"run", "-v", fmt.Sprintf("%s:/data:Z", mountPath), REDIS_IMAGE, "ls", "/data/test1"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) })