From 8c3b9f7faa4f39ddb89be229b706d4a9f9c659a4 Mon Sep 17 00:00:00 2001 From: SZEDER Gábor Date: Wed, 13 Mar 2019 13:24:13 +0100 Subject: tests: use 'test_atexit' to stop httpd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- t/t5545-push-options.sh | 2 -- 1 file changed, 2 deletions(-) (limited to 't/t5545-push-options.sh') diff --git a/t/t5545-push-options.sh b/t/t5545-push-options.sh index b47a95871c..6d1d59c9b1 100755 --- a/t/t5545-push-options.sh +++ b/t/t5545-push-options.sh @@ -278,6 +278,4 @@ test_expect_success 'push options keep quoted characters intact (http)' ' test_cmp expect "$HTTPD_DOCUMENT_ROOT_PATH"/upstream.git/hooks/pre-receive.push_options ' -stop_httpd - test_done -- cgit v1.2.3