Skip to content

Commit 36854dc

Browse files
committed
tests: Verify mtime changes
This could be its own whole new test, but it's simple enough to add one here. Signed-off-by: Colin Walters <[email protected]>
1 parent c88fcfd commit 36854dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ RUN echo test content > /usr/share/blah.txt
4646
# Just sanity check it
4747
let v = podman run --rm localhost/bootc-derived cat /usr/share/blah.txt | str trim
4848
assert equal $v "test content"
49+
50+
let orig_root_mtime = ls -Dl /ostree/bootc | get modified
51+
4952
# Now, fetch it back into the bootc storage!
5053
bootc switch --transport containers-storage localhost/bootc-derived
54+
55+
# Also test that the mtime changes on modification
56+
let new_root_mtime = ls -Dl /ostree/bootc | get modified
57+
assert ($new_root_mtime > $orig_root_mtime)
58+
5159
# And reboot into it
5260
tmt-reboot
5361
}

0 commit comments

Comments
 (0)