Skip to content

Commit

Permalink
Enable tests with skipped packages in transaction table
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha committed Apr 24, 2024
1 parent 033d090 commit 971c326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dnf-behave-tests/dnf/autoremove.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Scenario: Autoremoval of package which became non-required by others
And Transaction is following
| Action | Package |
| upgrade | SuperRipper-0:1.2-1.x86_64 |
#| broken | SuperRipper-0:1.3-1.x86_64 | # TODO(mblaha) broken packages are not captured in dnf5 transaction
| broken | SuperRipper-0:1.3-1.x86_64 |
When I execute dnf with args "autoremove"
Then the exit code is 0
And Transaction is following
Expand Down
7 changes: 3 additions & 4 deletions dnf-behave-tests/dnf/install-dependencies.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ Feature: Tests for install with dependencies
@bz1774617
Scenario: Best candidates have conflicting dependencies
Given I use repository "install-dependencies"
When I execute dnf with args "install foo bar --nobest"
When I execute dnf with args "install foo bar --no-best"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | foo-0:1.0-1.fc29.x86_64 |
| install | bar-0:1.0-1.fc29.x86_64 |
| install-dep | lib-0:1.0-1.fc29.x86_64 |
# dnf5 currently does not report packages skipped due to conflict / broken deps
# | conflict | lib-0:2.0-1.fc29.x86_64 |
# | broken | foo-0:2.0-1.fc29.x86_64 |
| conflict | lib-0:2.0-1.fc29.x86_64 |
| broken | foo-0:2.0-1.fc29.x86_64 |
And stderr contains "cannot install both lib-.\.0-1\.fc29\.x86_64 and lib-.\.0-1\.fc29\.x86_64"
And stderr contains "package foo-2.0-1.fc29.x86_64 requires lib-2.0, but none of the providers can be installed"
And stderr contains "package bar-1.0-1.fc29.x86_64 requires lib-1.0, but none of the providers can be installed"
Expand Down

0 comments on commit 971c326

Please sign in to comment.