diff options
author | Nick Cao <nickcao@nichi.co> | 2023-05-21 23:51:46 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 23:51:46 -0600 |
commit | cf577b1ef8cda395f4f741fb80d8737b3fa7faf3 (patch) | |
tree | cc75bbf172ccc9157a64be1b775188230f44b1c6 /nixos | |
parent | fdb8c06bfa9454104d1cf6d630e86266e2b19d8b (diff) | |
parent | 734d45ccf4873b8a99c1b934207704e76cfb746e (diff) |
Merge pull request #232828 from Luflosi/update/apfsprogs
apfsprogs: unstable-2023-03-21 -> unstable-2023-05-16
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/apfs.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/apfs.nix b/nixos/tests/apfs.nix index ac0459b57e9ce..9fe689951c783 100644 --- a/nixos/tests/apfs.nix +++ b/nixos/tests/apfs.nix @@ -48,5 +48,18 @@ import ./make-test-python.nix ({ pkgs, ... }: { "umount /tmp/mnt", "apfsck /dev/vdb", ) + with subtest("Snapshots"): + machine.succeed( + "mkapfs /dev/vdb", + "mount -o cknodes,readwrite /dev/vdb /tmp/mnt", + "echo 'Hello World' > /tmp/mnt/test.txt", + "apfs-snap /tmp/mnt snap-1", + "rm /tmp/mnt/test.txt", + "umount /tmp/mnt", + "mount -o cknodes,readwrite,snap=snap-1 /dev/vdb /tmp/mnt", + "echo 'Hello World' | diff - /tmp/mnt/test.txt", + "umount /tmp/mnt", + "apfsck /dev/vdb", + ) ''; }) |