Skip to contentSkip to conversation

test-lib: separate individual test better in verbose mode.

PATCH New Martin Waitz 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-lib: separate individual test better in verbose mode.

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.

---
 t/test-lib.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
t/test-lib.sh +3 -0
index b523fef..2488e6e 100755
@@ -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.
Signature · 4 lines
1.4.2.3

-- 
Martin Waitz