summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-10 09:46:55 +0100
committerlassulus <lassulus@lassul.us>2022-11-10 09:46:55 +0100
commitd61fd1522b0477b376418edb9dc1ea336af29f89 (patch)
treebbedf262f16ee86a7e2ecfc5bd002b02f47e63b0 /tests
parentc5973aed4ed82106b0b8fb06be2ec70e94ebd532 (diff)
add regression test for #52
Diffstat (limited to 'tests')
-rw-r--r--tests/multi-device-no-deps.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/multi-device-no-deps.nix b/tests/multi-device-no-deps.nix
new file mode 100644
index 0000000..ef1f7a8
--- /dev/null
+++ b/tests/multi-device-no-deps.nix
@@ -0,0 +1,12 @@
+# this is a regression test for https://github.com/nix-community/disko/issues/52
+{ pkgs ? (import <nixpkgs> { })
+, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
+}:
+makeDiskoTest {
+ disko-config = ../example/multi-device-no-deps.nix;
+ testBoot = false;
+ extraTestScript = ''
+ machine.succeed("mountpoint /mnt/a");
+ machine.succeed("mountpoint /mnt/b");
+ '';
+}