Skip to content

Commit

Permalink
Add test for "-c" alias (alias to "--config")
Browse files Browse the repository at this point in the history
  • Loading branch information
jrohel authored and jan-kolarik committed Aug 26, 2024
1 parent 4363030 commit 253c7b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dnf-behave-tests/dnf/config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ Scenario: Test usage of not existing config file
And stderr contains "Configuration file.*not found"


@dnf5
Scenario: Test using the short alias "-c" instead of "--config" (we'll use the test for a non-existent config file)
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "-c {context.dnf.installroot}/non/existing/dnf.conf list"
Then the exit code is 1
And stderr contains "Configuration file.*not found"


@dnf5
@bz1722493
Scenario: Lines that contain only whitespaces do not spoil previous config options
Expand Down

0 comments on commit 253c7b1

Please sign in to comment.