From 6e97976ad4e58af531cf3532e58ab2685587a1dd Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 13 Apr 2023 12:11:15 +0200 Subject: [PATCH] test/e2e: do not leak "hello" file Because the test mounts the current dir it does not need to create a new file in it. Just check if the current test file is there should fulfill the same purpose. Signed-off-by: Paul Holzinger --- test/e2e/run_volume_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index 03d2b3b011..946ac4c494 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -676,13 +676,9 @@ VOLUME /test/`, ALPINE) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - // Test overlay mount when lowerdir is relative path. - f, err = os.Create("hello") - Expect(err).ToNot(HaveOccurred(), "os.Create") - f.Close() session = podmanTest.Podman([]string{"run", "--rm", "-v", ".:/app:O", ALPINE, "ls", "/app"}) session.WaitWithDefaultTimeout() - Expect(session.OutputToString()).To(ContainSubstring("hello")) + Expect(session.OutputToString()).To(ContainSubstring(filepath.Base(CurrentGinkgoTestDescription().FileName))) Expect(session).Should(Exit(0)) // Make sure modifications in container do not show up on host