nixosTests.xmonad-xdg-autostart: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-14 23:20:54 +01:00
parent 6a13f858bd
commit 4ada7d8158
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 40 additions and 42 deletions

View File

@ -1290,7 +1290,7 @@ in {
xfce = handleTest ./xfce.nix {}; xfce = handleTest ./xfce.nix {};
xfce-wayland = handleTest ./xfce-wayland.nix {}; xfce-wayland = handleTest ./xfce-wayland.nix {};
xmonad = handleTest ./xmonad.nix {}; xmonad = handleTest ./xmonad.nix {};
xmonad-xdg-autostart = handleTest ./xmonad-xdg-autostart.nix {}; xmonad-xdg-autostart = runTest ./xmonad-xdg-autostart.nix;
xpadneo = runTest ./xpadneo.nix; xpadneo = runTest ./xpadneo.nix;
xrdp = runTest ./xrdp.nix; xrdp = runTest ./xrdp.nix;
xrdp-with-audio-pulseaudio = runTest ./xrdp-with-audio-pulseaudio.nix; xrdp-with-audio-pulseaudio = runTest ./xrdp-with-audio-pulseaudio.nix;

View File

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { lib, ... }:
{ lib, ... }: {
{
name = "xmonad-xdg-autostart"; name = "xmonad-xdg-autostart";
meta.maintainers = with lib.maintainers; [ oxalica ]; meta.maintainers = with lib.maintainers; [ oxalica ];
@ -34,11 +33,10 @@ import ./make-test-python.nix (
testScript = testScript =
{ nodes, ... }: { nodes, ... }:
let let
user = nodes.machine.config.users.users.alice; user = nodes.machine.users.users.alice;
in in
'' ''
machine.wait_for_x() machine.wait_for_x()
machine.wait_for_file("${user.home}/xdg-autostart-executed") machine.wait_for_file("${user.home}/xdg-autostart-executed")
''; '';
} }
)