Skip to content

Commit 09b6c1c

Browse files
authored
Merge pull request #1590 from cgwalters/journal-test
tests: Verify we emit journal messages
2 parents e219a1b + c76001a commit 09b6c1c

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 ($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)