Merge branch 'nd/test-lib-httpd-show-error-log-in-verbose'

HTTPd tests learned to show the server error log to help diagnosing
a failing tests.

* nd/test-lib-httpd-show-error-log-in-verbose:
  lib-httpd.sh: print error.log on error
This commit is contained in:
Junio C Hamano 2016-07-06 13:38:08 -07:00
commit 34bf3bbb30

View File

@ -180,6 +180,7 @@ start_httpd() {
if test $? -ne 0 if test $? -ne 0
then then
trap 'die' EXIT trap 'die' EXIT
cat "$HTTPD_ROOT_PATH"/error.log >&4 2>/dev/null
test_skip_or_die $GIT_TEST_HTTPD "web server setup failed" test_skip_or_die $GIT_TEST_HTTPD "web server setup failed"
fi fi
} }