Fix dnf5 tests running outside fedora

Match dnf3 and dnf5 tests together.

Change `recommends` to `require` for dnf5, because it doesn't make
sense to even start the test if dnf5 is not present.
This commit is contained in:
Ales Nezbeda 2024-08-26 14:37:46 +02:00
commit ef72f58db9
2 changed files with 20 additions and 16 deletions

View file

@ -31,15 +31,12 @@
rlJournalStart
rlPhaseStartTest
if [ ! -e /usr/bin/dnf5 ]; then
rlLog "dnf5 is not available, skipping"
else
rlRun "/usr/bin/dnf5 update -y"
rlRun "/usr/bin/dnf5 search sqlite"
rlRun "/usr/bin/dnf5 autoremove -y"
rlRun "/usr/bin/dnf5 info sqlite"
rlRun "/usr/bin/dnf5 history list"
fi
rlRun "/usr/bin/dnf5 update -y"
rlRun "/usr/bin/dnf5 search sqlite"
rlRun "/usr/bin/dnf5 autoremove -y"
rlRun "/usr/bin/dnf5 info sqlite"
rlRun "/usr/bin/dnf5 check"
rlRun "/usr/bin/dnf5 history list"
rlPhaseEnd
rlJournalEnd
rlJournalPrintText