-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
tests: update expeted error codes of qubes-vm-update #604
Conversation
When refreshing metadata fails, it's supposed to exit with code 23. Related to QubesOS/qubes-core-admin-linux#160
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #604 +/- ##
=======================================
Coverage 69.35% 69.35%
=======================================
Files 58 58
Lines 11919 11919
=======================================
Hits 8266 8266
Misses 3653 3653
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024070414-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2024062115-4.3&flavor=update
Failed tests13 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/103633#dependencies 4 fixed
Unstable tests
|
Previously the expected_ret_codes applied to both qubes-vm-update and later check if a package was updated (`rpm -q|grep ...` etc). With unified qubes-vm-update exit codes, this approach is too broad as qubes-vm-update is now expected to exit with very specific error, not just "any error" - and this doesn't match grep's exit code anymore. Fix this by adding another parameter for expected grep result (whether updated package is expected or not).
When refreshing metadata fails, it's supposed to exit with code 23.
Related to QubesOS/qubes-core-admin-linux#160