mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
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 <pholzing@redhat.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user