diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mdadm.nix (renamed from tests/test.nix) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test.nix b/tests/mdadm.nix index 1384590..37465e4 100644 --- a/tests/test.nix +++ b/tests/mdadm.nix @@ -7,7 +7,7 @@ let inherit pkgs; inherit (pkgs) system; }; - disko-config = import ../example/raid.nix; + disko-config = import ../example/mdadm.nix; tsp-create = pkgs.writeScript "create" ((pkgs.callPackage ../. {}).create disko-config); tsp-mount = pkgs.writeScript "mount" ((pkgs.callPackage ../. {}).mount disko-config); in makeTest' { @@ -34,5 +34,6 @@ in makeTest' { machine.succeed("${tsp-mount}"); machine.succeed("${tsp-mount}"); # verify that the command is idempotent machine.succeed("test -b /dev/md/raid1"); + machine.succeed("grep -qs '/mnt/raid' /proc/mounts"); ''; } |