Skip to content

Commit

Permalink
Test that dnf cannot install source rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha committed Nov 24, 2023
1 parent 0abda10 commit dd009b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dnf-behave-tests/dnf/install-fails.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ Scenario: Report error when installing non-existing RPM file
"""
Failed to access RPM "no_such_file.rpm": No such file or directory
"""

Scenario: Cannot install source rpm
Given I use repository "simple-base"
When I execute dnf with args "install vagare.src"
Then the exit code is 1
And stderr is
"""
Failed to resolve the transaction:
Argument 'vagare.src' matches only source packages.
"""

0 comments on commit dd009b5

Please sign in to comment.