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 fixups and update for newer systemd #1629

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Test fixups and update for newer systemd #1629

merged 1 commit into from
Jul 29, 2024

Conversation

bryteise
Copy link
Member

systemctl reports that the timer file is missing now as a return code 4 so update the unknown start number.

Also with this change SWUPD_NO is no longer always returned so add a new helper to check if a status is one of multiple options.

@bryteise
Copy link
Member Author

@bwarden So I'm inclined to merge this though the API detection change is real. The underlying systemctl command seems to have changed how it reports missing unit files so our reporting should update as well. That said, the test for running systemctl is-enabled/is-active isn't great so maybe something more could be done for the test if I'm ignoring an error anyway.

systemctl reports that the timer file is missing now as a return code
4 so update the unknown start number.

Also with this change SWUPD_NO is no longer always returned so add a
new helper to check if a status is one of multiple options.

Signed-off-by: William Douglas <william.douglas@intel.com>
@bryteise bryteise merged commit 9fdf88c into master Jul 29, 2024
28 of 30 checks passed
@bryteise bryteise deleted the more-test-fixups branch July 29, 2024 18:46
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.

2 participants