Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos test driver doesn't work with multiple emptyDiskImages #73559

Closed
flokli opened this issue Nov 17, 2019 · 1 comment
Closed

nixos test driver doesn't work with multiple emptyDiskImages #73559

flokli opened this issue Nov 17, 2019 · 1 comment
Labels
0.kind: bug 6.topic: testing Tooling for automated testing of packages and modules

Comments

@flokli
Copy link
Contributor

flokli commented Nov 17, 2019

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.

cc @tfc @Mic92 @worldofpeace

@veprbl veprbl added the 6.topic: testing Tooling for automated testing of packages and modules label Nov 17, 2019
@flokli
Copy link
Contributor Author

flokli commented Dec 4, 2019

This was fixed in 67e2042 already.

@flokli flokli closed this as completed Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: testing Tooling for automated testing of packages and modules
Projects
None yet
Development

No branches or pull requests

2 participants