diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2019-03-13 12:24:13 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-14 03:34:39 (GMT) |
commit | 8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4 (patch) | |
tree | af53f193791f56d0e6e7ca2bd3b850ed15306055 /t/t5551-http-fetch-smart.sh | |
parent | 9f82b2a6a754c7cec37282d954208b4b429a3a05 (diff) | |
download | git-8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4.zip git-8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4.tar.gz git-8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4.tar.bz2 |
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/t5551-http-fetch-smart.sh')
-rwxr-xr-x | t/t5551-http-fetch-smart.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/t/t5551-http-fetch-smart.sh b/t/t5551-http-fetch-smart.sh index ba83e56..9faf634 100755 --- a/t/t5551-http-fetch-smart.sh +++ b/t/t5551-http-fetch-smart.sh @@ -434,5 +434,4 @@ test_expect_success 'server-side error detected' ' grep "server-side error" actual ' -stop_httpd test_done |