summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-02-07 14:04:07 +0100
committerPatrick Steinhardt <ps@pks.im>2020-02-07 14:04:07 +0100
commit49bb4237cbe5af6c2ca5f155db3551ff9eb75e2e (patch)
treef7ce85962dad6a1c035f895cfb3a58ac46272edd
parentfb03f02aa144f45bff89923238888809fae314dc (diff)
downloadlibgit2-49bb4237cbe5af6c2ca5f155db3551ff9eb75e2e.tar.gz
azure: test: silence termination message when killing git-daemon(1)
In order to properly tear down the test environment, we will kill git-daemon(1) if we've exercised it. As git-daemon(1) is spawned as a background process, it is still owned by the shell and thus killing it later on will print a termination message to the shell's stderr, causing Azure to report it as an error. Fix this by disowning the background process.
-rwxr-xr-xazure-pipelines/test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/azure-pipelines/test.sh b/azure-pipelines/test.sh
index c6c89c6b7..96832d64c 100755
--- a/azure-pipelines/test.sh
+++ b/azure-pipelines/test.sh
@@ -81,6 +81,7 @@ if [ -z "$SKIP_GITDAEMON_TESTS" ]; then
git init --bare "${GITDAEMON_DIR}/test.git"
git daemon --listen=localhost --export-all --enable=receive-pack --base-path="${GITDAEMON_DIR}" "${GITDAEMON_DIR}" 2>/dev/null &
GITDAEMON_PID=$!
+ disown $GITDAEMON_PID
fi
if [ -z "$SKIP_PROXY_TESTS" ]; then