-
Notifications
You must be signed in to change notification settings - Fork 141
tests: Verify we emit journal messages #1590
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,10 @@ RUN echo test content > /usr/share/blah.txt | |
let rr_meta = (ls /run/reboot-required | first) | ||
assert equal $rr_meta.size 0b | ||
|
||
# Also test that the mtime changes on modification | ||
# Verify that we logged to the journal | ||
journalctl _MESSAGE_ID=3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The message ID being checked appears to be incorrect for this test case. The Additionally, the check is implicit, relying on the exit code of
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wow, well spotted gemini except...actually the problem is switch in place and switch have the same message ID, which was probably (?) not intentional. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so do we change the ID then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I think we should change one of them, but I would say it should be a separate PR? |
||
|
||
# The mtime should change on modification | ||
let new_root_mtime = ls -Dl /ostree/bootc | get modified | ||
assert ($new_root_mtime > $orig_root_mtime) | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.