Skip to content

Commit

Permalink
Add test for kernel downgrade
Browse files Browse the repository at this point in the history
It's tested for both "dnf downgrade" and "dnf install <older version>"
cases.
  • Loading branch information
m-blaha authored and kontura committed Jul 18, 2023
1 parent 10f9cfa commit f6547b3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dnf-behave-tests/dnf/installonly.feature
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,23 @@ Scenario: Kernel upgrade does not fail when installonly_limit=1 (default value i
| Action | Package |
| install | kernel-core-0:4.19.15-300.fc29.x86_64 |
| unchanged | kernel-core-0:4.18.16-300.fc29.x86_64 |

@dnf5
@bz2221308 @gh_dnf5_720
Scenario Outline: Dnf can downgrade kernel using "<command>" command.
Given I use repository "dnf-ci-fedora-updates"
When I execute dnf with args "install kernel-core-4.19.15-300.fc29.x86_64"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | kernel-core-0:4.19.15-300.fc29.x86_64 |
When I execute dnf with args "<command> <args>"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | kernel-core-0:4.18.16-300.fc29.x86_64 |

Examples:
| command | args |
| downgrade | kernel-core |
| install | kernel-core-4.18.16-300.fc29.x86_64 |

0 comments on commit f6547b3

Please sign in to comment.