aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/libpod_suite_test.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-05-07 16:09:18 -0500
committerBrent Baude <bbaude@redhat.com>2020-05-10 09:09:07 -0500
commit9b66d1321e283d1971d96ff757d54cb8f8037da2 (patch)
tree482e2b4d1d77df360be589044eed4e09e7c8bfce /test/e2e/libpod_suite_test.go
parentdc7d6f4818f4b986cfd15208d53f6765d8fad986 (diff)
downloadpodman-9b66d1321e283d1971d96ff757d54cb8f8037da2.tar.gz
podman-9b66d1321e283d1971d96ff757d54cb8f8037da2.tar.bz2
podman-9b66d1321e283d1971d96ff757d54cb8f8037da2.zip
enable rootless integration testing
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r--test/e2e/libpod_suite_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go
index 29a55980c..d26f5784d 100644
--- a/test/e2e/libpod_suite_test.go
+++ b/test/e2e/libpod_suite_test.go
@@ -21,6 +21,12 @@ func SkipIfRootless() {
}
}
+func SkipIfRootlessV2() {
+ if os.Geteuid() != 0 {
+ ginkgo.Skip("This function is not enabled for v2 rootless podman")
+ }
+}
+
// Podman is the exec call to podman on the filesystem
func (p *PodmanTestIntegration) Podman(args []string) *PodmanSessionIntegration {
podmanSession := p.PodmanBase(args, false, false)