summaryrefslogtreecommitdiff
path: root/t/lib-git-svn.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2019-03-13 13:24:13 +0100
committerJunio C Hamano <gitster@pobox.com>2019-03-14 12:34:39 +0900
commit8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4 (patch)
treeaf53f193791f56d0e6e7ca2bd3b850ed15306055 /t/lib-git-svn.sh
parent9f82b2a6a754c7cec37282d954208b4b429a3a05 (diff)
downloadgit-8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4.tar.gz
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/lib-git-svn.sh')
-rw-r--r--t/lib-git-svn.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh
index f3b478c307..c1271d6863 100644
--- a/t/lib-git-svn.sh
+++ b/t/lib-git-svn.sh
@@ -76,11 +76,6 @@ maybe_start_httpd () {
LIB_HTTPD_SVN="$loc"
start_httpd
;;
- *)
- stop_httpd () {
- : noop
- }
- ;;
esac
}