summary refs log tree commit diff
path: root/nixos/tests/tigervnc.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2021-11-05 01:43:22 +0100
committerRobert Hensing <robert@roberthensing.nl>2021-11-05 02:41:26 +0100
commit739c51ae4ef9535b37672d7dc303bce432562922 (patch)
tree9da4fc54649597897f3c65c78991fab74ee0f87f /nixos/tests/tigervnc.nix
parent698fb089d8276ac6907ae3a13ee1933a59e12112 (diff)
downloadnixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.tar
nixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.tar.gz
nixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.tar.bz2
nixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.tar.lz
nixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.tar.xz
nixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.tar.zst
nixpkgs-739c51ae4ef9535b37672d7dc303bce432562922.zip
nixosTests: Redirect stdout to stderr when detaching
Avoids blocking on stdout.
Diffstat (limited to 'nixos/tests/tigervnc.nix')
-rw-r--r--nixos/tests/tigervnc.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/tigervnc.nix b/nixos/tests/tigervnc.nix
index 092eaf238d8..ed575682d93 100644
--- a/nixos/tests/tigervnc.nix
+++ b/nixos/tests/tigervnc.nix
@@ -35,13 +35,13 @@ makeTest {
     for host in [server, client]:
         host.succeed("echo foobar | vncpasswd -f > vncpasswd")
 
-    server.succeed("Xvnc -geometry 720x576 :1 -PasswordFile vncpasswd &")
+    server.succeed("Xvnc -geometry 720x576 :1 -PasswordFile vncpasswd >&2 &")
     server.wait_until_succeeds("nc -z localhost 5901", timeout=10)
     server.succeed("DISPLAY=:1 xwininfo -root | grep 720x576")
-    server.execute("DISPLAY=:1 display -size 360x200 -font sans -gravity south label:'HELLO VNC WORLD' &")
+    server.execute("DISPLAY=:1 display -size 360x200 -font sans -gravity south label:'HELLO VNC WORLD' >&2 &")
 
     client.wait_for_x()
-    client.execute("vncviewer server:1 -PasswordFile vncpasswd &")
+    client.execute("vncviewer server:1 -PasswordFile vncpasswd >&2 &")
     client.wait_for_window(r"VNC")
     client.screenshot("screenshot")
     text = client.get_screen_text()