summaryrefslogtreecommitdiff
path: root/t/t5540-http-push-webdav.sh
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder.dev@gmail.com>2019-03-13 13:24:13 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-14 12:34:39 +0900
commit8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4 (patch)
treeaf53f193791f56d0e6e7ca2bd3b850ed15306055 /t/t5540-http-push-webdav.sh
parentgit-daemon: use 'test_atexit` to stop 'git-daemon' (diff)
downloadtgif-8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4.tar.xz
tests: use 'test_atexit' to stop httpd
Use 'test_atexit' to run cleanup commands to stop httpd at the end of the test script or upon interrupt or failure, as it is shorter, simpler, and more robust than registering such cleanup commands in the trap on EXIT in the test scripts. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5540-http-push-webdav.sh')
-rwxr-xr-xt/t5540-http-push-webdav.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/t/t5540-http-push-webdav.sh b/t/t5540-http-push-webdav.sh
index 88ff5a49e4..a094fd5e71 100755
--- a/t/t5540-http-push-webdav.sh
+++ b/t/t5540-http-push-webdav.sh
@@ -176,6 +176,4 @@ test_expect_failure 'push to password-protected repository (no user in URL)' '
test_cmp expect actual
'
-stop_httpd
-
test_done