-
Notifications
You must be signed in to change notification settings - Fork 48
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
Review k*-p* feature files for dnf5 #1584
Conversation
The note was made to explain why the feature is disabled and it wasn't removed when it was enabled later on.
Since there are no longer other logs than the dnf5.log, some scenarios or parts of tests that tested these logs are removed.
Dnf5 doesn't print the whole messages from librepo on stdout, it instead prints them on stderr, plus they are truncated, possibly because there can be many errors from librepo at once, for example due to trying many mirrors. The full message is then in the dnf5.log.
There is no point in testing that the behavior is incorrect and having just a note about the correct one.
There is no reason to test that dnf stores internal information in a specific place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@@ -82,4 +82,8 @@ Scenario: present user understandable message when there is a mismatch between a | |||
And I execute "echo \"checksum mismatch\" >> /{context.dnf.repos[simple-base].path}/x86_64/labirinto-1.0-1.fc29.x86_64.rpm" | |||
When I execute dnf with args "install labirinto" | |||
Then the exit code is 1 | |||
And stdout contains "\[MIRROR\] labirinto-1.0-1.fc29.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: .*, repository metadata states file length: .* \(please report to repository maintainer\)" | |||
And stderr contains "Interrupted by header callback: Inconsistent server data" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally don't like the truncating and I have filed an issue for it: rpm-software-management/dnf5#1829
We can keep the test like this and depending on what is decided in the issue it can be updated later (or not).
So far except for plugin* feature files, since these will probably need bigger changes.