Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for "-c" alias (alias to "--config") #1539

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading