debian-forge-composer/test/cases/libvirt.sh
Tomáš Hozza 812b331743 test/libvirt.sh: don't test openstack image on el10 / c10s
There's no openstack image type on el10 / c10s any more.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-08-13 15:52:44 +02:00

23 lines
731 B
Bash

#!/bin/bash
set -euo pipefail
#
# Helper script that executes `tools/libvirt_test.sh` with the appropiate image type and boot type
#
# Get OS data.
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
# Provision the software under test.
/usr/libexec/osbuild-composer-test/provision.sh none
# Test the images
/usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2
# Fedora's openstack image is an alias of qcow2, we don't need to test it separately
# el10 / c10s no longer has an openstack image type
if [[ ("$ID" == "rhel" || "$ID" == "centos") && ${VERSION_ID%.*} -lt 10 ]] ; then
/usr/libexec/osbuild-composer-test/libvirt_test.sh openstack
fi
/usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2 uefi