From e77161853171c448ab8401d9c47285e1b87412df Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 29 Apr 2024 15:49:36 +0200 Subject: [PATCH] run e2e test on tmpfs Follow up to commit eaf60c7fe7, with the toolbox image removal it is possible to run all tests from tmpfs. Signed-off-by: Paul Holzinger --- test/e2e/common_test.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index 82ddc5c121..f617c3a586 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -138,16 +138,7 @@ const ( ) var _ = SynchronizedBeforeSuite(func() []byte { - // One global scratch directory under which all test files will live. - // The usual case is that these tests are running in CI, on VMs - // with limited RAM, so we use /var/tmp. - baseTmpDir := "/var/tmp" - if os.Getenv("CI") == "" { - // Almost certainly a manual run, e.g., a developer with - // a hotrod workstation. Assume they know what they're doing. - baseTmpDir = "" - } - globalTmpDir, err := os.MkdirTemp(baseTmpDir, "podman-e2e-") + globalTmpDir, err := os.MkdirTemp("", "podman-e2e-") Expect(err).ToNot(HaveOccurred()) // make cache dir