Skip to content

Commit

Permalink
tests: Verify mtime changes
Browse files Browse the repository at this point in the history
This could be its own whole new test, but it's simple
enough to add one here.

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Dec 20, 2024
1 parent c88fcfd commit 36854dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/booted/test-image-pushpull-upgrade.nu
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,16 @@ RUN echo test content > /usr/share/blah.txt
# Just sanity check it
let v = podman run --rm localhost/bootc-derived cat /usr/share/blah.txt | str trim
assert equal $v "test content"

let orig_root_mtime = ls -Dl /ostree/bootc | get modified

# Now, fetch it back into the bootc storage!
bootc switch --transport containers-storage localhost/bootc-derived

# Also test that the mtime changes on modification
let new_root_mtime = ls -Dl /ostree/bootc | get modified
assert ($new_root_mtime > $orig_root_mtime)

# And reboot into it
tmt-reboot
}
Expand Down

0 comments on commit 36854dc

Please sign in to comment.