Test/base_tests.sh: workaround missing osbuild-depsolve-dnf in nightly

The RHEL nightly composes still contain old osbuild-composer version,
which does not have an explicit dependency on osbuild-depsolve-dnf
package.

As a result, running the latest upstream base_tests.sh on RHEL nightly
composes fails due to osbuild-depsolve-dnf not being installed.

Workaround this in the test case by explicitly installing the
osbuild-depsolve-dnf package in case the osbuild-composer version is
lower than the one which has an explicit dependency on
osbuild-depsolve-dnf.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-02-19 14:14:51 +01:00 committed by Tomáš Hozza
parent 82add84c31
commit 218a784778

View file

@ -51,6 +51,13 @@ run_test_case () {
# Provision the software under test.
/usr/libexec/osbuild-composer-test/provision.sh none
# Explicitly install osbuild-depsolve-dnf in nightly pipeline until the
# osbuild-composer version which has the dependency lands there (v101).
if ! nvrGreaterOrEqual "osbuild-composer" "101"; then
echo "osbuild-composer version is too old, explicitly installing osbuild-depsolve-dnf"
sudo dnf install -y osbuild-depsolve-dnf
fi
# Change to the working directory.
cd $WORKING_DIRECTORY