Skip to content

Commit

Permalink
Test/base_tests.sh: workaround missing osbuild-depsolve-dnf in nightly
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thozza committed Feb 20, 2024
1 parent 82add84 commit 218a784
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/cases/base_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 218a784

Please sign in to comment.