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:
parent
af09fb1505
commit
ef72f58db9
2 changed files with 20 additions and 16 deletions
|
|
@ -1,15 +1,22 @@
|
|||
summary: Sanity test for sqlite database and dnf5
|
||||
description: ''
|
||||
contact: Zuzana Miklankova <zmiklank@redhat.com>
|
||||
contact: Ales Nezbeda <anezbeda@redhat.com>
|
||||
component:
|
||||
- sqlite
|
||||
- sqlite
|
||||
path: /basic/sqlite3-dnf5
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- sqlite
|
||||
- dnf5
|
||||
require:
|
||||
- sqlite
|
||||
- dnf5
|
||||
duration: 5m
|
||||
enabled: true
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro <= rhel-10
|
||||
because: DNF 5 is not present in RHEL 10 and older repos.
|
||||
- enabled: false
|
||||
when: distro <= centos-stream-10
|
||||
because: DNF 5 is not present in CentOS Stream 10 and older repos.
|
||||
tag:
|
||||
- Tier1
|
||||
- sqlite
|
||||
- Tier1
|
||||
- sqlite
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue