about summary refs log tree commit diff
path: root/nixos/tests/avahi.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-03-21 19:18:18 +0100
committeraszlig <aszlig@nix.build>2022-03-22 17:24:13 +0100
commitde4a69b2de1f157989fb1780d89d8db004169bd1 (patch)
treee8fd83432693d9b7a260723d66bf2891cde1f1ef /nixos/tests/avahi.nix
parenta9777c1644da215805397251045c681dfdd65af5 (diff)
nixos/tests/avahi: Fix running background command
In https://github.com/NixOS/nixpkgs/pull/142747, the implementation
behind Machine.execute() has been changed 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,
which we do by redirecting stdout to stderr.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'nixos/tests/avahi.nix')
-rw-r--r--nixos/tests/avahi.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/avahi.nix b/nixos/tests/avahi.nix
index ebb46838325f3..c53a95903291c 100644
--- a/nixos/tests/avahi.nix
+++ b/nixos/tests/avahi.nix
@@ -59,7 +59,7 @@ import ./make-test-python.nix {
     two.succeed("test `wc -l < out` -gt 0")
 
     # More DNS-SD.
-    one.execute('avahi-publish -s "This is a test" _test._tcp 123 one=1 &')
+    one.execute('avahi-publish -s "This is a test" _test._tcp 123 one=1 >&2 &')
     one.sleep(5)
     two.succeed("avahi-browse -r -t _test._tcp | tee out >&2")
     two.succeed("test `wc -l < out` -gt 0")