-
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
Adjust reposync tests for dnf5 behavior #1599
Conversation
@@ -1,4 +1,4 @@ | |||
@xfail | |||
@dnf5 | |||
# The plugin is missing: https://github.com/rpm-software-management/dnf5/issues/931 |
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.
Left over comment.
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.
Thenks, removed.
@@ -377,11 +387,34 @@ Scenario: Reposync does not stop downloading packages on the first error | |||
# remove one of reposynced packages to cause download error | |||
And I delete file "//{context.dnf.tempdir}/repos/simple-base/src/dedalo-signed-1.0-1.fc29.src.rpm" | |||
When I execute dnf with args "reposync --download-path={context.dnf.tempdir}" | |||
Then the exit code is 1 | |||
And stdout contains "\[FAILED\] dedalo-signed-1.0-1.fc29.src.rpm: No more mirrors to try - All mirrors were already tried without success" | |||
Then the exit code is 0 |
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.
Should we rather mark the test as @xfail
and add the link to the relevant issue?
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.
Agreed, that's definitely better solution.
http://localhost:[0-9]+/repodata/primary.xml.gz | ||
http://localhost:[0-9]+/repodata/filelists.xml.gz | ||
http://localhost:[0-9]+/repodata/other.xml.gz | ||
http://localhost:[0-9]+/repodata/comps.xml | ||
http://localhost:[0-9]+/repodata/comps.xml.gz | ||
http://localhost:[0-9]+/repodata/primary.xml.zst | ||
http://localhost:[0-9]+/repodata/filelists.xml.zst | ||
http://localhost:[0-9]+/repodata/other.xml.zst | ||
http://localhost:[0-9]+/repodata/comps.xml.zst |
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 believe the order has changed for this test and the one above since it uses the std::map
.
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.
Yes, fixed.
- progress bars output goes to stderr instead of stdout - full NEVRA including epoch is used - --downloadcomps support is dropped - --newest-only is yet not fully supported for modules - backported dnf4 test for not downloading the same NEVRA multiple times
42f8c3d
to
ee11e87
Compare
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.
Great, thanks!
Requires: rpm-software-management/dnf5#1903