diff options
author | Robert Hensing <robert@roberthensing.nl> | 2021-11-05 01:43:22 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2021-11-05 02:41:26 +0100 |
commit | 739c51ae4ef9535b37672d7dc303bce432562922 (patch) | |
tree | 9da4fc54649597897f3c65c78991fab74ee0f87f /nixos/tests/turbovnc-headless-server.nix | |
parent | 698fb089d8276ac6907ae3a13ee1933a59e12112 (diff) | |
download | nixpkgs-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/turbovnc-headless-server.nix')
-rw-r--r-- | nixos/tests/turbovnc-headless-server.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/turbovnc-headless-server.nix b/nixos/tests/turbovnc-headless-server.nix index dfa17d65f85..7d705c56ecf 100644 --- a/nixos/tests/turbovnc-headless-server.nix +++ b/nixos/tests/turbovnc-headless-server.nix @@ -97,7 +97,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { ) machine.execute( # Note trailing & for backgrounding. - f"({xvnc_command} | tee /tmp/Xvnc.stdout) 3>&1 1>&2 2>&3 | tee /tmp/Xvnc.stderr &", + f"({xvnc_command} | tee /tmp/Xvnc.stdout) 3>&1 1>&2 2>&3 | tee /tmp/Xvnc.stderr >&2 &", ) @@ -119,7 +119,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { def test_glxgears_failing_with_bad_driver_path(): machine.execute( # Note trailing & for backgrounding. - "(env DISPLAY=:0 LIBGL_DRIVERS_PATH=/nonexistent glxgears -info | tee /tmp/glxgears-should-fail.stdout) 3>&1 1>&2 2>&3 | tee /tmp/glxgears-should-fail.stderr &" + "(env DISPLAY=:0 LIBGL_DRIVERS_PATH=/nonexistent glxgears -info | tee /tmp/glxgears-should-fail.stdout) 3>&1 1>&2 2>&3 | tee /tmp/glxgears-should-fail.stderr >&2 &" ) machine.wait_until_succeeds("test -f /tmp/glxgears-should-fail.stderr") wait_until_terminated_or_succeeds( @@ -136,7 +136,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { def test_glxgears_prints_renderer(): machine.execute( # Note trailing & for backgrounding. - "(env DISPLAY=:0 glxgears -info | tee /tmp/glxgears.stdout) 3>&1 1>&2 2>&3 | tee /tmp/glxgears.stderr &" + "(env DISPLAY=:0 glxgears -info | tee /tmp/glxgears.stdout) 3>&1 1>&2 2>&3 | tee /tmp/glxgears.stderr >&2 &" ) machine.wait_until_succeeds("test -f /tmp/glxgears.stderr") wait_until_terminated_or_succeeds( |