mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
tests: register dynamically-created machines with the driver
The nixpkgs test driver was refactored: `driver.machines` is now a computed property that returns a fresh sorted list combining `driver.machines_qemu` and `driver.machines_nspawn`. Appending to the property therefore mutates only the temporary returned list, so the machines created via `create_test_machine` are no longer registered with the driver.
This commit is contained in:
1 parent
17e2eee822
commit
8ebce63228
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -342,7 +342,7 @@ let
|
||||
]
|
||||
''}
|
||||
machine = create_machine(start_command=" ".join(start_command), **kwargs)
|
||||
driver.machines.append(machine)
|
||||
driver.machines_qemu.append(machine)
|
||||
return machine
|
||||
|
||||
machine.start()
|
||||
|
||||
@@ -48,7 +48,7 @@ pkgs.testers.nixosTest {
|
||||
"virtio-blk-pci,drive=drive1",
|
||||
]
|
||||
machine = create_machine(start_command=" ".join(start_command), **kwargs)
|
||||
driver.machines.append(machine)
|
||||
driver.machines_qemu.append(machine)
|
||||
return machine
|
||||
machine.succeed("lsblk >&2")
|
||||
|
||||
|
||||
Reference in new issue
Block a user