Mercurial > hg
changeset 46920:7a9b74e98240
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Apr 2021 15:56:21 +0200 |
parents | 9799ba0abb12 |
children | 8f7b1bf3c540 |
files | tests/test-lfs-test-server.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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