-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
nixos test driver doesn't work with multiple emptyDiskImages #73559
Copy link
Copy link
Closed
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: testingTooling for automated testing of packages and modulesTooling for automated testing of packages and modules
Description
Describe a NixOS VM test that uses emptyDiskImages on more than one VM, and run it via nixosTests.testName.
Observe it works with the perl test driver, but fails with the python test driver.
The python test code shows something like this:
qemu-system-x86_64: -drive file=/build /empty0.qcow2,id=drive2,if=none,index=2,werror=report: Failed to get "write" lock
This seems to be caused due to some differences in passing around environment to the startVM script created in qemu-vm.nix, which causes it to not create the empty$idx.qcow2 images in a per-vm tmpdir, but all in the same location (and by that, trying to use empty0.qcow2 from two different VMs at once.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken6.topic: testingTooling for automated testing of packages and modulesTooling for automated testing of packages and modules