test_report_skip_ () {
test_reset_state_
- say_color skip >&3 "skipping test: $@"
+ say_color skip >&3 "skipping test:"
+ echo " $@" >&3
say_color skip "%-6s" "SKIP"
echo " $1"
}
}
test_reset_state_ () {
+ test -z "$test_init_done_" && test_init_
+
test_subtest_known_broken_=
test_subtest_missing_external_prereqs_=
}
+# called once before the first subtest
+test_init_ () {
+ test_init_done_=t
+
+ # skip all tests if there were external prerequisites missing during init
+ test_check_missing_external_prereqs_ "all tests in $this_test" && test_done
+}
+
find_notmuch_path ()
{