From ff6371548543e3c90a9ba1dce4eb6b3bb7727948 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 23 Sep 2020 16:03:30 -0400 Subject: Remove some SkipIfRootess flags from tests We need to get more tests running in rootless mode. Since cgroupsV2 allows management of cgroups in rootless environments a lot of more tests can be run. Signed-off-by: Daniel J Walsh --- test/e2e/libpod_suite_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/e2e/libpod_suite_test.go') diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go index d6e0789eb..00d066fea 100644 --- a/test/e2e/libpod_suite_test.go +++ b/test/e2e/libpod_suite_test.go @@ -19,6 +19,12 @@ func IsRemote() bool { func SkipIfRemote(string) { } +func SkipIfRootlessCgroupsV1() { + if os.Geteuid() != 0 && !CGROUPSV2 { + Skip("Rooless requires cgroupsV2 to set limits") + } +} + func SkipIfRootless() { if os.Geteuid() != 0 { Skip("This function is not enabled for rootless podman") -- cgit v1.2.3-54-g00ecf