Skip to content

Commit

Permalink
versionlock: add a test when adding packages by wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura authored and m-blaha committed Jan 22, 2025
1 parent 551a104 commit a8a897e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,20 @@ Scenario: I can lock mutliple packages when one is already locked
<REPOSYNC>
Package "wget" is already locked.
"""


# https://github.com/rpm-software-management/dnf5/issues/1895
Scenario: I can lock multiple packages with the same nevra and name matching wildcard
When I execute dnf with args "versionlock add lz4*"
Then the exit code is 0
And stdout is
"""
Adding versionlock on "lz4 = 1.7.5-2.fc26".
Adding versionlock on "lz4-debuginfo = 1.7.5-2.fc26".
Adding versionlock on "lz4-devel = 1.7.5-2.fc26".
Adding versionlock on "lz4-static = 1.7.5-2.fc26".
"""
And stderr is
"""
<REPOSYNC>
"""

0 comments on commit a8a897e

Please sign in to comment.