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

Fix hash comparison #21118

Merged
merged 2 commits into from
Feb 6, 2025
Merged

Fix hash comparison #21118

merged 2 commits into from
Feb 6, 2025

Conversation

realcharmer
Copy link
Contributor

@realcharmer realcharmer commented Feb 5, 2025

The code would try to compare matching hashes with the file path included, always resulting in a failure. This change extracts only the hash itself from the sha256sum output. Furthermore, the logic for hash checking now marks the test as failed, when the hashes do not match, indicating a problem with the transfer, which would otherwise get overlooked.

The code would try to compare matching hashes with the file path
included, always resulting in a failure. This change extracts only the
hash itself from the sha256sum output.
The logic for hash checking now marks the test as failed, when the
hashes do not match, indicating a problem with the transfer, which
would otherwise get overlooked.
@realcharmer realcharmer marked this pull request as ready for review February 6, 2025 08:59
@realcharmer realcharmer merged commit d48b196 into os-autoinst:master Feb 6, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants