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

test: add a new normalize_rpm_refs helper #200

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Sep 16, 2024

This commit adds a new normalize_rpm_refs() helper that will normalize the rpm file inputs for comparison, i.e. it will sort the hashes and remove duplicates. This is important because the "images" library writes duplicated input rpm packages from the inputs as duplicated hashes into the references.

But in our test we only need to worry about that exactly the right rpm files got included, the order is not important.

[split out from https://github.com//pull/196]

This commit adds a new `normalize_rpm_refs()` helper that will
normalize the rpm file inputs for comparison, i.e. it will sort
the hashes and remove duplicates. This is important because the
"images" library writes duplicated input rpm packages from the
inputs as duplicated hashes into the references.

But in our test we only need to worry about that exactly the right
rpm files got included, the order is not important.
@supakeen supakeen added this pull request to the merge queue Sep 16, 2024
Merged via the queue into osbuild:main with commit aca93e2 Sep 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants