mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-24 02:14:52 +01:00
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.
This commit is contained in:
parent
5985438e05
commit
f05e7f3ce5
4 changed files with 12 additions and 3 deletions
|
@ -98,6 +98,7 @@ done
|
|||
trap - HUP INT TERM
|
||||
|
||||
# Report results
|
||||
echo
|
||||
./aggregate-results.sh test-results/*
|
||||
ev=$?
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
test-verbose: Testing the verbosity options of the test framework itself.
|
||||
PASS print something in test_expect_success and pass
|
||||
FAIL print something in test_expect_success and fail
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
test-verbose: Testing the verbosity options of the test framework itself.
|
||||
hello stdout
|
||||
hello stderr
|
||||
|
|
Loading…
Reference in a new issue