diff options
author | lassulus <lassulus@lassul.us> | 2022-08-25 13:13:20 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-08-25 15:32:09 +0200 |
commit | 1237ac36db1a457ae561134d191d2924a9ce5ffc (patch) | |
tree | 893e0455554e2a98244b8a7f94363b11007f0b59 /tests | |
parent | 6b0b20da18cdffd09f04faee7128c557bcb9f054 (diff) |
fix mdadm mounting, move test to mdadm test
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"); ''; } |