Skip to content

Commit c76001a

Browse files
committed
tests: Verify we emit journal messages
Followup to previous commit. Signed-off-by: Colin Walters <[email protected]>
1 parent 8768d70 commit c76001a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tmt/tests/booted/test-image-pushpull-upgrade.nu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ RUN echo test content > /usr/share/blah.txt
6969
let rr_meta = (ls /run/reboot-required | first)
7070
assert equal $rr_meta.size 0b
7171

72-
# Also test that the mtime changes on modification
72+
# Verify that we logged to the journal
73+
journalctl _MESSAGE_ID=3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7
74+
75+
# The mtime should change on modification
7376
let new_root_mtime = ls -Dl /ostree/bootc | get modified
7477
assert ($new_root_mtime > $orig_root_mtime)
7578

0 commit comments

Comments
 (0)