summaryrefslogtreecommitdiff
path: root/test/system/helpers.bash
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-23 12:21:49 +0200
committerGitHub <noreply@github.com>2020-06-23 12:21:49 +0200
commitbbaba9fb8649035bf2c19488450a04beed5a1858 (patch)
treeba2b717970d87901304b9aefd5daff8e4f22675f /test/system/helpers.bash
parentfc2c2ad1746da05393a2ca737360923e3f5a9f29 (diff)
parentd4504e6f53895e9f0125b560d0e01e697e96ac2e (diff)
downloadpodman-bbaba9fb8649035bf2c19488450a04beed5a1858.tar.gz
podman-bbaba9fb8649035bf2c19488450a04beed5a1858.tar.bz2
podman-bbaba9fb8649035bf2c19488450a04beed5a1858.zip
Merge pull request #6679 from edsantiago/bats
system tests: new rm, build tests
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r--test/system/helpers.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash
index 7ec2105d1..7e6f1c1ca 100644
--- a/test/system/helpers.bash
+++ b/test/system/helpers.bash
@@ -2,6 +2,12 @@
# Podman command to run; may be podman-remote
PODMAN=${PODMAN:-podman}
+# If it's a relative path, convert to absolute; otherwise tests can't cd out
+if [[ "$PODMAN" =~ / ]]; then
+ if [[ ! "$PODMAN" =~ ^/ ]]; then
+ PODMAN=$(realpath $PODMAN)
+ fi
+fi
# Standard image to use for most tests
PODMAN_TEST_IMAGE_REGISTRY=${PODMAN_TEST_IMAGE_REGISTRY:-"quay.io"}