disko/tests/btrfs-subvolumes.nix

13 lines
336 B
Nix
Raw Normal View History

{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
2022-08-25 19:46:17 +00:00
}:
2022-08-25 21:12:49 +00:00
makeDiskoTest {
2023-02-21 16:19:39 +00:00
name = "btrfs-subvolumes";
2022-10-29 11:19:29 +00:00
disko-config = ../example/btrfs-subvolumes.nix;
2022-08-25 21:12:49 +00:00
extraTestScript = ''
machine.succeed("test -e /test");
machine.succeed("btrfs subvolume list / | grep -qs 'path test$'");
2022-08-25 19:46:17 +00:00
'';
}