summaryrefslogtreecommitdiffstats
path: root/tests/btrfs-subvolumes.nix
blob: 3ff4386225ad1bb2191e078599073c9b02438306 (plain)
1
2
3
4
5
6
7
8
9
10
11
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
  disko-config = import ../example/btrfs-subvolumes.nix;
  extraTestScript = ''
    machine.succeed("test -e /mnt/test");
    machine.succeed("btrfs subvolume list /mnt | grep -qs 'path test$'");
  '';
}