nixosTests.xrdp-with-audio-pulseaudio: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-14 23:09:47 +01:00
parent 650ab40c81
commit 2af95991ab
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 85 additions and 87 deletions

View file

@ -1293,7 +1293,7 @@ in {
xmonad-xdg-autostart = handleTest ./xmonad-xdg-autostart.nix {}; xmonad-xdg-autostart = handleTest ./xmonad-xdg-autostart.nix {};
xpadneo = handleTest ./xpadneo.nix {}; xpadneo = handleTest ./xpadneo.nix {};
xrdp = handleTest ./xrdp.nix {}; xrdp = handleTest ./xrdp.nix {};
xrdp-with-audio-pulseaudio = handleTest ./xrdp-with-audio-pulseaudio.nix {}; xrdp-with-audio-pulseaudio = runTest ./xrdp-with-audio-pulseaudio.nix;
xscreensaver = handleTest ./xscreensaver.nix {}; xscreensaver = handleTest ./xscreensaver.nix {};
xss-lock = runTest ./xss-lock.nix; xss-lock = runTest ./xss-lock.nix;
xterm = runTest ./xterm.nix; xterm = runTest ./xterm.nix;

View file

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { pkgs, ... }:
{ pkgs, ... }: {
{
# How to interactively test this module if the audio actually works # How to interactively test this module if the audio actually works
# - nix run .#pulseaudio-module-xrdp.tests.xrdp-with-audio-pulseaudio.driverInteractive # - nix run .#pulseaudio-module-xrdp.tests.xrdp-with-audio-pulseaudio.driverInteractive
@ -106,5 +105,4 @@ import ./make-test-python.nix (
server.succeed('[ "$(cat /tmp/pulseaudio-sink)" == "xrdp-sink" ]') server.succeed('[ "$(cat /tmp/pulseaudio-sink)" == "xrdp-sink" ]')
client.screenshot("remoterdp") client.screenshot("remoterdp")
''; '';
} }
)