mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 11:28:13 +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
|
trap - HUP INT TERM
|
||||||
|
|
||||||
# Report results
|
# Report results
|
||||||
|
echo
|
||||||
./aggregate-results.sh test-results/*
|
./aggregate-results.sh test-results/*
|
||||||
ev=$?
|
ev=$?
|
||||||
|
|
||||||
|
|
|
@ -190,7 +190,15 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
test_description_printed=
|
||||||
|
print_test_description ()
|
||||||
|
{
|
||||||
|
test -z "$test_description_printed" || return 0
|
||||||
|
echo
|
||||||
echo $this_test: "Testing ${test_description}"
|
echo $this_test: "Testing ${test_description}"
|
||||||
|
test_description_printed=1
|
||||||
|
}
|
||||||
|
print_test_description
|
||||||
|
|
||||||
exec 5>&1
|
exec 5>&1
|
||||||
|
|
||||||
|
@ -979,8 +987,6 @@ test_done () {
|
||||||
echo "failed $test_failure" >> $test_results_path
|
echo "failed $test_failure" >> $test_results_path
|
||||||
echo "" >> $test_results_path
|
echo "" >> $test_results_path
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
[ -n "$EMACS_SERVER" ] && test_emacs '(kill-emacs)'
|
[ -n "$EMACS_SERVER" ] && test_emacs '(kill-emacs)'
|
||||||
|
|
||||||
if [ "$test_failure" = "0" ]; then
|
if [ "$test_failure" = "0" ]; then
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
test-verbose: Testing the verbosity options of the test framework itself.
|
test-verbose: Testing the verbosity options of the test framework itself.
|
||||||
PASS print something in test_expect_success and pass
|
PASS print something in test_expect_success and pass
|
||||||
FAIL print something in test_expect_success and fail
|
FAIL print something in test_expect_success and fail
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
test-verbose: Testing the verbosity options of the test framework itself.
|
test-verbose: Testing the verbosity options of the test framework itself.
|
||||||
hello stdout
|
hello stdout
|
||||||
hello stderr
|
hello stderr
|
||||||
|
|
Loading…
Reference in a new issue