Skip to content

Commit

Permalink
t5541: avoid TAP test miscounting
Browse files Browse the repository at this point in the history
lib-terminal.sh runs a test and thus increases the test count, but the
output is lost so that TAP produces a "no plan found error".

Move the lib-terminal call after the lib-httpd and make TAP happy
(though still leave me clueless).

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Jan 8, 2012
1 parent c207e34 commit d336572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5541-http-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

test_description='test smart pushing over http via http-backend'
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-terminal.sh

if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
Expand All @@ -15,6 +14,7 @@ fi
ROOT_PATH="$PWD"
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5541'}
. "$TEST_DIRECTORY"/lib-httpd.sh
. "$TEST_DIRECTORY"/lib-terminal.sh
start_httpd

test_expect_success 'setup remote repository' '
Expand Down

0 comments on commit d336572

Please sign in to comment.