]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: print empty line at the beginning of test script, not at end
[notmuch] / test / test-lib.sh
index 6e475452805524193a9900c7a1b418fa13753c93..34e0db68d36cf08e286570cc6e71e75cf4f58287 100644 (file)
@@ -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