summaryrefslogtreecommitdiffstats
path: root/tests/btrfs-subvolumes.nix
blob: e53cf341ebf537405e41b776abedcc5c897f7b7c (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 /test");
    machine.succeed("btrfs subvolume list / | grep -qs 'path test$'");
  '';
}