summaryrefslogtreecommitdiff
path: root/test/system/helpers.bash
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2019-04-10 08:17:03 -0600
committerEd Santiago <santiago@redhat.com>2019-04-10 08:19:09 -0600
commit7220c166d42273c6e70c4a9df8cc0964987cd57b (patch)
tree632bc006aa9cef7eccbb31cb6c20ed8fb252efa4 /test/system/helpers.bash
parent2f2c7660c3a30d4c28c03eeeba8edc39f7864c7a (diff)
downloadpodman-7220c166d42273c6e70c4a9df8cc0964987cd57b.tar.gz
podman-7220c166d42273c6e70c4a9df8cc0964987cd57b.tar.bz2
podman-7220c166d42273c6e70c4a9df8cc0964987cd57b.zip
BATS tests: start supporting podman-remote
podman-remote now supports rm! That's what we needed to start running BATS tests. Although most tests don't actually work, some do, and maybe the rest will start working over time. For now, disable them. The only significant difference found is that podman-remote strips fractional seconds from timestamps in JSON output. Probably not something worth caring about. Signed-off-by: Ed Santiago <santiago@redhat.com>
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