diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-08-17 15:36:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-17 15:36:20 +0100 |
commit | e97ddb5138a8087895020ffa43e0cbed5af4c3bb (patch) | |
tree | ff101efd7096c6add300ad99290e493820a7e1df /tests | |
parent | f8522774e77789ba4b5fd0581daacf4747a5360f (diff) | |
parent | e123b05ff4226fba308d0cffc259817fa3425d1d (diff) |
Merge pull request #11 from nix-community/change-mount-code
use findmnt and mount with X-mount.mkdir
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test.nix b/tests/test.nix index fa89208..82976ba 100644 --- a/tests/test.nix +++ b/tests/test.nix @@ -85,6 +85,8 @@ let }; }; }; + tsp-create = pkgs.writeScript "create" ((pkgs.callPackage ../. {}).create disko-config); + tsp-mount = pkgs.writeScript "mount" ((pkgs.callPackage ../. {}).mount disko-config); in makeTest' { name = "disko"; @@ -105,8 +107,9 @@ in makeTest' { testScript = '' machine.succeed("echo 'secret' > /tmp/secret.key"); - machine.succeed("${pkgs.writeScript "create" ((pkgs.callPackage ../. {}).create disko-config)}"); - machine.succeed("${pkgs.writeScript "mount" ((pkgs.callPackage ../. {}).mount disko-config)}"); + machine.succeed("${tsp-create}"); + machine.succeed("${tsp-mount}"); + machine.succeed("${tsp-mount}"); # verify that the command is idempotent machine.succeed("test -b /dev/mapper/pool-raw"); ''; } |