Skip to content

Commit 4aea72c

Browse files
committed
fixup! git-daemon: use test_atexit in the tests
Turns out that there are problems with that approach that are totally not related to Azure Pipelines, so in order to focus on the latter, let's skip the test_atexit patches for now. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d24a561 commit 4aea72c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

t/interop/i5500-git-daemon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ test_expect_success "fetch with $VERSION_B" '
3737
test_cmp expect actual
3838
'
3939

40+
stop_git_daemon
4041
test_done

t/lib-git-daemon.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#
1414
# test_expect_success ...
1515
#
16+
# stop_git_daemon
1617
# test_done
1718

1819
test_tristate GIT_TEST_GIT_DAEMON
@@ -42,7 +43,7 @@ start_git_daemon() {
4243

4344
mkdir -p "$GIT_DAEMON_DOCUMENT_ROOT_PATH"
4445

45-
test_atexit 'stop_git_daemon'
46+
trap 'code=$?; stop_git_daemon; (exit $code); die' EXIT
4647

4748
say >&3 "Starting git daemon ..."
4849
mkfifo git_daemon_output

t/t5570-git-daemon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,5 @@ test_expect_success FAKENC 'hostname interpolation works after LF-stripping' '
211211
test_cmp expect actual
212212
'
213213

214+
stop_git_daemon
214215
test_done

0 commit comments

Comments
 (0)