aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-08-07 10:02:43 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-07 20:46:09 +0000
commite94ae35be91ecbce711bcf72a940c23e3c3d8db6 (patch)
tree6c9c42541e9b2483e612e1cadefc3572a6b81a6e /test
parent69a741817b2697fd408a8b44b6331cf07c3511ec (diff)
downloadpodman-e94ae35be91ecbce711bcf72a940c23e3c3d8db6.tar.gz
podman-e94ae35be91ecbce711bcf72a940c23e3c3d8db6.tar.bz2
podman-e94ae35be91ecbce711bcf72a940c23e3c3d8db6.zip
Handle yum and dnf
Signed-off-by: baude <bbaude@redhat.com> Closes: #1227 Approved by: rhatdan
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_podman_baseline.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test_podman_baseline.sh b/test/test_podman_baseline.sh
index 72999c5d9..a9ade8c7b 100755
--- a/test/test_podman_baseline.sh
+++ b/test/test_podman_baseline.sh
@@ -36,6 +36,13 @@ then
set -eu
fi
+pkg_manager=`command -v dnf`
+if [ -z "$pkg_manager" ]; then
+ pkg_manager=`command -v yum`
+fi
+
+echo "Package manager binary: $pkg_manager"
+
########
# Next two commands should return blanks
########
@@ -145,7 +152,7 @@ then
########
# Install Docker, but not for long!
########
- dnf -y install docker
+ $package_manager -y install docker
fi
systemctl restart docker
@@ -164,7 +171,7 @@ then
########
# Time to remove Docker
########
- dnf -y remove docker
+ $package_manager -y remove docker
fi
########