summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-07 09:27:41 -0400
committerGitHub <noreply@github.com>2021-04-07 09:27:41 -0400
commit0e67053b9a26f20e5ccbffdcc5e7a84254ca16b8 (patch)
tree381ca66d8886f09ab822b7f278bd1922b9161a58 /test/system
parentb8a4494b102a84e21e267ad1242e4af9ca413f2f (diff)
parent2ab5a294b90976c0a1e3cd71d65fb4c738441b7b (diff)
downloadpodman-0e67053b9a26f20e5ccbffdcc5e7a84254ca16b8.tar.gz
podman-0e67053b9a26f20e5ccbffdcc5e7a84254ca16b8.tar.bz2
podman-0e67053b9a26f20e5ccbffdcc5e7a84254ca16b8.zip
Merge pull request #9955 from edsantiago/bats
System tests: special case for RHEL: require runc
Diffstat (limited to 'test/system')
-rw-r--r--test/system/005-info.bats21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/system/005-info.bats b/test/system/005-info.bats
index c0af2e937..ed341dd17 100644
--- a/test/system/005-info.bats
+++ b/test/system/005-info.bats
@@ -53,6 +53,27 @@ store.imageStore.number | 1
}
+# 2021-04-06 discussed in watercooler: RHEL must never use crun, even if
+# using cgroups v2.
+@test "podman info - RHEL8 must use runc" {
+ local osrelease=/etc/os-release
+ test -e $osrelease || skip "Not a RHEL system (no $osrelease)"
+
+ local osname=$(source $osrelease; echo $NAME)
+ if [[ $osname =~ Red.Hat || $osname =~ CentOS ]]; then
+ # Version can include minor; strip off first dot an all beyond it
+ local osver=$(source $osrelease; echo $VERSION_ID)
+ test ${osver%%.*} -le 8 || skip "$osname $osver > RHEL8"
+
+ # RHEL or CentOS 8.
+ # FIXME: what does 'CentOS 8' even mean? What is $VERSION_ID in CentOS?
+ run_podman info --format '{{.Host.OCIRuntime.Name}}'
+ is "$output" "runc" "$osname only supports OCI Runtime = runc"
+ else
+ skip "only applicable on RHEL, this is $osname"
+ fi
+}
+
@test "podman info --storage-opt='' " {
skip_if_remote "--storage-opt flag is not supported for remote"
skip_if_rootless "storage opts are required for rootless running"