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

[PATCH] test-lib: separate individual test better in verbose mode.

From
Martin Waitz <tali@admingilde.org>
Date
Oct 7, 2006, 19:27 UTC
Message-ID
<20061007192746.GZ2871@admingilde.org>

When running tests with --verbose it is difficult to see where one test starts and where it ends because everything is printed in one big lump. Fix that by printing one single newline between each test.

Signed-off-by: Martin Waitz <tali@admingilde.org>
---
 t/test-lib.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index b523fef..2488e6e 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -135,6 +135,7 @@ test_expect_failure () {
 	else
 		test_failure_ "$@"
 	fi
+	echo >&3 ""
 }
 
 test_expect_success () {
@@ -148,6 +149,7 @@ test_expect_success () {
 	else
 		test_failure_ "$@"
 	fi
+	echo >&3 ""
 }
 
 test_expect_code () {
@@ -161,6 +163,7 @@ test_expect_code () {
 	else
 		test_failure_ "$@"
 	fi
+	echo >&3 ""
 }
 
 # Most tests can use the created repository, but some amy need to create more.
-- 
1.4.2.3

-- 
Martin Waitz
Message 1 of 1 in “test-lib: separate individual test better in verbose mode.”
  1. test-lib: separate individual test better in verbose mode.Martin Waitz, Oct 7, 2006

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.