Skip to content

Commit

Permalink
Test/dnf4.mark: adjust the test for markings used by DNF5
Browse files Browse the repository at this point in the history
When I rolled back from using 'dnf4', to check package markings, to
using 'dnf', I didn't verify the test case on Fedora Rawhide with DNF5.
It turns out that the strings reported by DNF5 differ and make the test
case fail. This time I tested the change on Fedora Rawhide with DNF5 and
it works.

Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza authored and elkoniu committed Aug 1, 2024
1 parent 0bbdabf commit 12f81e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/run/test_stages.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,11 @@ def test_dnf4_mark(self):
raise

if package == "dnf":
assert mark == "user"
# dnf4 marks packages as 'user', while dnf5 marks them as 'User'
assert mark in ("user", "User")
else:
assert mark == "unknown"
# dnf4 marks packages as 'unknown', while dnf5 marks them as 'External User'
assert mark in ("unknown", "External User")

@unittest.skipUnless(test.TestBase.has_filesystem_support("btrfs"), "btrfs needed")
def test_btrfs(self):
Expand Down

0 comments on commit 12f81e0

Please sign in to comment.