nixos/tests/sway: fix alacritty xwayland test

if WAYLAND_DISPLAY is set to some invalid string than alacritty will
exit with an error.
This commit is contained in:
Jörg Thalheim 2024-01-06 11:21:21 +01:00
parent 868769dc6c
commit 610af56da4

View File

@ -134,7 +134,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
machine.wait_for_file("/tmp/sway-ipc.sock")
# Test XWayland (foot does not support X):
swaymsg("exec WINIT_UNIX_BACKEND=x11 WAYLAND_DISPLAY=invalid alacritty")
swaymsg("exec WINIT_UNIX_BACKEND=x11 WAYLAND_DISPLAY= alacritty")
wait_for_window("alice@machine")
machine.send_chars("test-x11\n")
machine.wait_for_file("/tmp/test-x11-exit-ok")