summaryrefslogtreecommitdiff
path: root/test/system/helpers.bash
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-11 19:19:23 -0700
committerGitHub <noreply@github.com>2019-04-11 19:19:23 -0700
commite197cb2ff4db0685cd77abf81d4913db51c6d08f (patch)
treee5245850d7f625d38ca245a1e76c8095de8e38d7 /test/system/helpers.bash
parente6fd4737ec80b0bbe5e299076e36f29cee112a0a (diff)
parent7220c166d42273c6e70c4a9df8cc0964987cd57b (diff)
downloadpodman-e197cb2ff4db0685cd77abf81d4913db51c6d08f.tar.gz
podman-e197cb2ff4db0685cd77abf81d4913db51c6d08f.tar.bz2
podman-e197cb2ff4db0685cd77abf81d4913db51c6d08f.zip
Merge pull request #2889 from edsantiago/bats
BATS tests: start supporting podman-remote
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r--test/system/helpers.bash10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash
index 431228498..29ef19ecc 100644
--- a/test/system/helpers.bash
+++ b/test/system/helpers.bash
@@ -225,6 +225,16 @@ function skip_if_rootless() {
skip "${1:-not applicable under rootless podman}"
}
+####################
+# skip_if_remote # ...with an optional message
+####################
+function skip_if_remote() {
+ if [[ ! "$PODMAN" =~ -remote ]]; then
+ return
+ fi
+
+ skip "${1:-test does not work with podman-remote}"
+}
#########
# die # Abort with helpful message