git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/3] t5541: avoid TAP test miscounting

From
Clemens Buchacher <drizzd@aon.at>
Date
Jan 8, 2012, 21:06 UTC
Message-ID
<1326056781-17456-4-git-send-email-drizzd@aon.at>
In-Reply-To
<1326056781-17456-1-git-send-email-drizzd@aon.at>
From: Michael J Gruber <git@drmicha.warpmail.net>

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>
---
 t/t5541-http-push.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh
index 0c3cd3b..6c9ec6f 100755
--- a/t/t5541-http-push.sh
+++ b/t/t5541-http-push.sh
@@ -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'
@@ -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' '
-- 
1.7.8
Previous: Clemens Buchacher
Message 4 of 4 in “enable push --quiet”
  1. Clemens BuchacherJan 8, 2012
  2. 1/3 server_supports(): parse feature list more carefullyClemens Buchacher, Jan 8, 2012
  3. 2/3 fix push --quiet: add 'quiet' capability to receive-packClemens Buchacher, Jan 8, 2012
  4. 3/3 t5541: avoid TAP test miscountingClemens Buchacher, Jan 8, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.