X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Ftest-lib.sh;h=23f7c8f80aaf741cf81a8f2af249cfc05675b94b;hb=6f0f83660e222cfdd05b05ad134763a7ab26f097;hp=0bca76df217afbb062ac2157eefd3206b5cb196e;hpb=100106a45d9f362ed8770c95cf35bd43f6580511;p=notmuch diff --git a/test/test-lib.sh b/test/test-lib.sh index 0bca76df..23f7c8f8 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -858,15 +858,16 @@ test_when_finished () { test_done () { GIT_EXIT_OK=t test_results_dir="$TEST_DIRECTORY/test-results" - mkdir -p "$test_results_dir" + test -d "$test_results_dir" || mkdir "$test_results_dir" test_results_path="$test_results_dir/$this_test" - echo "total $test_count" >> $test_results_path - echo "success $test_success" >> $test_results_path - echo "fixed $test_fixed" >> $test_results_path - echo "broken $test_broken" >> $test_results_path - echo "failed $test_failure" >> $test_results_path - echo "" >> $test_results_path + printf %s\\n \ + "success $test_success" \ + "fixed $test_fixed" \ + "broken $test_broken" \ + "failed $test_failure" \ + "total $test_count" \ + > $test_results_path [ -n "$EMACS_SERVER" ] && test_emacs '(kill-emacs)'