test-lfs: avoid a bashism when spawning the server
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Apr 2021 15:56:21 +0200
changeset 46920 7a9b74e98240
parent 46919 9799ba0abb12
child 46921 8f7b1bf3c540
test-lfs: avoid a bashism when spawning the server For zsh, this &> call is read as "& >", this spin the process without redirection. As a result the server grab stdout, which does not get closed at the end of the test. As a result `run-tests.py` hang there forever, waiting for the the stream for be close. (which is probably as issue on its own). Differential Revision: https://phab.mercurial-scm.org/D10396
tests/test-lfs-test-server.t
--- a/tests/test-lfs-test-server.t	Wed Apr 14 15:54:32 2021 +0200
+++ b/tests/test-lfs-test-server.t	Wed Apr 14 15:56:21 2021 +0200
@@ -17,7 +17,7 @@
 #endif
 
 #if no-windows git-server
-  $ lfs-test-server &> lfs-server.log &
+  $ lfs-test-server > lfs-server.log 2>&1 &
   $ echo $! >> $DAEMON_PIDS
 #endif
 
@@ -890,7 +890,7 @@
   $ mkdir $TESTTMP/lfs-server2
   $ cd $TESTTMP/lfs-server2
 #if no-windows git-server
-  $ lfs-test-server &> lfs-server.log &
+  $ lfs-test-server > lfs-server.log 2>&1 &
   $ echo $! >> $DAEMON_PIDS
 #endif