X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Flib-httpd.sh;h=6765b08065e8959dcec38940188818b952d2fcd0;hb=59773c7e583b1dcf4b63c4ee222b79cef460456b;hp=cde659d14ac599e78bb4cd12a2ad88eab179549e;hpb=d32643c0ff6d74b967b65e867f1f99dba840836e;p=git.git diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh index cde659d14..6765b0806 100644 --- a/t/lib-httpd.sh +++ b/t/lib-httpd.sh @@ -93,14 +93,16 @@ prepare_httpd() { start_httpd() { prepare_httpd >&3 2>&4 - trap 'stop_httpd; die' EXIT + trap 'code=$?; stop_httpd; (exit $code); die' EXIT "$LIB_HTTPD_PATH" -d "$HTTPD_ROOT_PATH" \ -f "$TEST_PATH/apache.conf" $HTTPD_PARA \ -c "Listen 127.0.0.1:$LIB_HTTPD_PORT" -k start \ >&3 2>&4 - if ! test $? = 0; then + if test $? -ne 0 + then say "skipping test, web server setup failed" + trap 'die' EXIT test_done fi }