disko/tests/btrfs-subvolumes.nix

12 lines
321 B
Nix
Raw Normal View History

{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
2022-08-25 22:46:17 +03:00
}:
2022-08-26 00:12:49 +03:00
makeDiskoTest {
2022-08-25 22:46:17 +03:00
disko-config = import ../example/btrfs-subvolumes.nix;
2022-08-26 00:12:49 +03:00
extraTestScript = ''
2022-08-25 22:46:17 +03:00
machine.succeed("test -e /mnt/test");
machine.succeed("btrfs subvolume list /mnt | grep -qs 'path test$'");
'';
}