From 17a06d343176d53552e9017e8aebecd7fa252452 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 4 Jul 2023 16:10:11 +0200 Subject: [PATCH] test/e2e: remove RHEL7 workaround AFAIK the latest podman will not even run on RHEL 7 anymore, in any case we do not need these tests to run there. Signed-off-by: Paul Holzinger --- test/e2e/common_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index 431ec6e2fe..7ca18d3ab9 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -155,20 +155,6 @@ var _ = SynchronizedBeforeSuite(func() []byte { // tests are remote, this is a no-op populateCache(podman) - host := GetHostDistributionInfo() - if host.Distribution == "rhel" && strings.HasPrefix(host.Version, "7") { - f, err := os.OpenFile("/proc/sys/user/max_user_namespaces", os.O_WRONLY, 0644) - if err != nil { - GinkgoWriter.Println("Unable to enable userspace on RHEL 7") - os.Exit(1) - } - _, err = f.WriteString("15000") - if err != nil { - GinkgoWriter.Println("Unable to enable userspace on RHEL 7") - os.Exit(1) - } - f.Close() - } path, err := os.MkdirTemp("", "libpodlock") if err != nil { GinkgoWriter.Println(err)