debian-forge-composer/test/cases/libvirt.sh
Ondřej Budai a4719c6b3b test/libvirt.sh: don't test the aliased openstack image on Fedora
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2023-06-26 17:56:20 +02:00

22 lines
631 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
if [[ "$ID" != "fedora" ]] ; then
/usr/libexec/osbuild-composer-test/libvirt_test.sh openstack
fi
/usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2 uefi