summaryrefslogtreecommitdiff
path: root/test/e2e/libpod_suite_remoteclient_test.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-03-19 09:49:34 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-03-19 15:01:51 +0100
commit66d21901252b2030d50708c89627d4e05a5d10a7 (patch)
tree6879098f41471d05773fb3bcaa7fa904cb492628 /test/e2e/libpod_suite_remoteclient_test.go
parent4ab7462adde0dff905e646cf4def54a2b2bc2804 (diff)
downloadpodman-66d21901252b2030d50708c89627d4e05a5d10a7.tar.gz
podman-66d21901252b2030d50708c89627d4e05a5d10a7.tar.bz2
podman-66d21901252b2030d50708c89627d4e05a5d10a7.zip
test: fix SkipIfRootless() helper
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e/libpod_suite_remoteclient_test.go')
-rw-r--r--test/e2e/libpod_suite_remoteclient_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/e2e/libpod_suite_remoteclient_test.go b/test/e2e/libpod_suite_remoteclient_test.go
index a964986a2..44c5edf07 100644
--- a/test/e2e/libpod_suite_remoteclient_test.go
+++ b/test/e2e/libpod_suite_remoteclient_test.go
@@ -18,7 +18,11 @@ func SkipIfRemote() {
ginkgo.Skip("This function is not enabled for remote podman")
}
-func SkipIfRootless() {}
+func SkipIfRootless() {
+ if os.Geteuid() != 0 {
+ ginkgo.Skip("This function is not enabled for remote podman")
+ }
+}
// Cleanup cleans up the temporary store
func (p *PodmanTestIntegration) Cleanup() {
@@ -135,6 +139,9 @@ func (p *PodmanTestIntegration) CleanupVolume() {
}
func PodmanTestCreate(tempDir string) *PodmanTestIntegration {
+ if os.Geteuid() != 0 {
+ ginkgo.Skip("This function is not enabled for rootless podman")
+ }
pti := PodmanTestCreateUtil(tempDir, true)
pti.StartVarlink()
return pti