From bba268d374dbcf1238e350f394bca0b103b16297 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 7 Nov 2021 17:31:44 +0100 Subject: tests: Fix running background command for PSI test Recently, the implementation behind Machine.execute() and thus also Machine.succeed() has been changed[1] to pipe all the command's output into base64 on the guest machine. Unfortunately this means that base64 is blocking until stdout is closed, which in turn means that we now need to make sure that whenever we run a program in background via "&" we also need to make sure to close stdout. In the PSI test, we're doing this by simply redirecting the output to stderr. [1]: https://github.com/NixOS/nixpkgs/pull/142747 Signed-off-by: aszlig --- tests/aszlig/programs/psi.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/aszlig/programs/psi.nix b/tests/aszlig/programs/psi.nix index d42c4c21..b926f0c0 100644 --- a/tests/aszlig/programs/psi.nix +++ b/tests/aszlig/programs/psi.nix @@ -19,7 +19,7 @@ machine.wait_for_x() machine.wait_for_file("/home/alice/.Xauthority") machine.succeed("xauth merge ~alice/.Xauthority") - machine.succeed('su -c "DISPLAY=:0.0 psi" - alice &') + machine.succeed('su -c "DISPLAY=:0.0 psi" - alice >&2 &') machine.wait_for_text('(?i)Reg.ster new account') machine.screenshot('psi') ''; -- cgit 1.4.1