summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-01 20:11:22 +0100
committerlassulus <lassulus@lassul.us>2022-12-01 20:11:22 +0100
commit0f21bc31fe237ed1c9f8fdd3a0e8be633588302a (patch)
treeddd1b677b02571d06dff243b2e71a23414745af6 /tests
parentc3a7680451b25214ddbee3ab55a6d1b67f6e2a60 (diff)
tests module: test system.build output instead of systemPackages
Diffstat (limited to 'tests')
-rw-r--r--tests/lib.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib.nix b/tests/lib.nix
index 3fb3486..6d787ed 100644
--- a/tests/lib.nix
+++ b/tests/lib.nix
@@ -103,7 +103,7 @@
virtualisation.emptyDiskImages = builtins.genList (_: 4096) num-disks;
};
- testScript = ''
+ testScript = { nodes, ... }: ''
def disks(oldmachine, num_disks):
disk_flags = ""
for i in range(num_disks):
@@ -126,9 +126,9 @@
machine.succeed("${tsp-mount}") # verify that the command is idempotent
''}
${lib.optionalString (testMode == "module") ''
- machine.succeed("disko-create")
- machine.succeed("disko-mount")
- machine.succeed("disko-mount") # verify that the command is idempotent
+ machine.succeed("${nodes.machine.system.build.formatScript}")
+ machine.succeed("${nodes.machine.system.build.mountScript}")
+ machine.succeed("${nodes.machine.system.build.mountScript}") # verify that the command is idempotent
''}
${lib.optionalString (testMode == "cli") ''
# TODO use the disko cli here