test/cases: add centos OS_VARIANTS to installers test
Set conditional OS_VARIANT, copied from ostree-ng.sh. Add CentOS Stream 9 variant.
This commit is contained in:
parent
32fe534292
commit
85383ca950
1 changed files with 17 additions and 1 deletions
|
|
@ -109,7 +109,23 @@ polkit.addRule(function(action, subject) {
|
|||
EOF
|
||||
|
||||
# Set up variables.
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
rhel-8*)
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
;;
|
||||
rhel-9*)
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
;;
|
||||
centos-8)
|
||||
OS_VARIANT="centos8"
|
||||
;;
|
||||
centos-9)
|
||||
OS_VARIANT="centos-stream9"
|
||||
;;
|
||||
*)
|
||||
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
||||
exit 1;;
|
||||
esac
|
||||
TEST_UUID=$(uuidgen)
|
||||
SSH_USER="admin"
|
||||
IMAGE_KEY="osbuild-composer-installer-test-${TEST_UUID}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue