From f05e7f3ce50b5762a56406b29012b25e2d1329b2 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Mon, 25 Nov 2013 19:08:18 +0200 Subject: test: print empty line at the beginning of test script, not at end In preparation for quiet mode print empty line before writing the test description. This is done now in function designed for it -- it will also be called when test fails. --- test/test-lib.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/test-lib.sh') diff --git a/test/test-lib.sh b/test/test-lib.sh index 6e475452..34e0db68 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -190,7 +190,15 @@ then exit 0 fi -echo $this_test: "Testing ${test_description}" +test_description_printed= +print_test_description () +{ + test -z "$test_description_printed" || return 0 + echo + echo $this_test: "Testing ${test_description}" + test_description_printed=1 +} +print_test_description exec 5>&1 @@ -979,8 +987,6 @@ test_done () { echo "failed $test_failure" >> $test_results_path echo "" >> $test_results_path - echo - [ -n "$EMACS_SERVER" ] && test_emacs '(kill-emacs)' if [ "$test_failure" = "0" ]; then -- cgit v1.2.3