mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
tests module: test system.build output instead of systemPackages
This commit is contained in:
parent
c3a7680451
commit
0f21bc31fe
@ -103,7 +103,7 @@
|
|||||||
virtualisation.emptyDiskImages = builtins.genList (_: 4096) num-disks;
|
virtualisation.emptyDiskImages = builtins.genList (_: 4096) num-disks;
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = { nodes, ... }: ''
|
||||||
def disks(oldmachine, num_disks):
|
def disks(oldmachine, num_disks):
|
||||||
disk_flags = ""
|
disk_flags = ""
|
||||||
for i in range(num_disks):
|
for i in range(num_disks):
|
||||||
@ -126,9 +126,9 @@
|
|||||||
machine.succeed("${tsp-mount}") # verify that the command is idempotent
|
machine.succeed("${tsp-mount}") # verify that the command is idempotent
|
||||||
''}
|
''}
|
||||||
${lib.optionalString (testMode == "module") ''
|
${lib.optionalString (testMode == "module") ''
|
||||||
machine.succeed("disko-create")
|
machine.succeed("${nodes.machine.system.build.formatScript}")
|
||||||
machine.succeed("disko-mount")
|
machine.succeed("${nodes.machine.system.build.mountScript}")
|
||||||
machine.succeed("disko-mount") # verify that the command is idempotent
|
machine.succeed("${nodes.machine.system.build.mountScript}") # verify that the command is idempotent
|
||||||
''}
|
''}
|
||||||
${lib.optionalString (testMode == "cli") ''
|
${lib.optionalString (testMode == "cli") ''
|
||||||
# TODO use the disko cli here
|
# TODO use the disko cli here
|
||||||
|
Loading…
Reference in New Issue
Block a user