runNixOSTest interactive driver appends "-nographic" on macOS if DISPLAY is not set #390751
Closed
3 tasks done
Labels
0.kind: bug
Something is broken
6.topic: darwin
Running or building packages on Darwin
6.topic: testing
Tooling for automated testing of packages and modules
Nixpkgs version
Describe the bug
If you create a NixOS test and run it with
driverInteractive
, then the qemu window does not show up on macOS because it is guarded onDISPLAY
being set:nixpkgs/nixos/lib/test-driver/src/test_driver/machine.py
Lines 202 to 204 in 3d70185
Setting a bogus DISPLAY env var fixes this, but this check probably shouldn't happen at all on macOS.
Steps to reproduce
Run the simple example here on macOS using a Linux builder: https://nixos.org/manual/nixos/stable/index.html#sec-nixos-tests
Expected behaviour
The qemu window should show up
Screenshots
With DISPLAY set to
very-real-i-promise
:Relevant log output
Additional context
No response
System metadata
Are you using nix-darwin?
Yes, I am using nix-darwin.
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: