diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-09-23 16:03:30 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-09-25 05:06:28 -0400 |
commit | ff6371548543e3c90a9ba1dce4eb6b3bb7727948 (patch) | |
tree | 7553c14e7c9ab15fadd5ba26c3dee2e38a466fef /test/e2e/libpod_suite_test.go | |
parent | 90c2cc6c8342e96ca0a21e59c3cdb7761b2229ea (diff) | |
download | podman-ff6371548543e3c90a9ba1dce4eb6b3bb7727948.tar.gz podman-ff6371548543e3c90a9ba1dce4eb6b3bb7727948.tar.bz2 podman-ff6371548543e3c90a9ba1dce4eb6b3bb7727948.zip |
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 <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r-- | test/e2e/libpod_suite_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
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") |