test scripts: refactor start_httpd helper
commit75318a3bad4b7a25f617217891bfbcec26a9161a
authorJeff King <peff@peff.net>
Wed, 25 Feb 2009 08:32:08 +0000 (25 03:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Feb 2009 08:49:44 +0000 (26 00:49 -0800)
treed45c6de5a4621d7dedbb0203545ccaa9045b4d56
parent661763abf6e13eabf0aa1a3eefd364d32da8f4ad
test scripts: refactor start_httpd helper

There are some redirects and some error checking that need
to be done by the caller; let's move both into the
start_httpd function so that all callers don't have to
repeat them (there is only one caller now, but another will
follow in this series).

This doesn't violate any assumptions that aren't already
being made by lib-httpd, which is happy to say "skipping"
and call test_done for a number of other cases.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd.sh
t/t5540-http-push.sh