From 9b66d1321e283d1971d96ff757d54cb8f8037da2 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 7 May 2020 16:09:18 -0500 Subject: enable rootless integration testing Signed-off-by: Brent Baude --- 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 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) -- cgit v1.2.3-54-g00ecf