diff options
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r-- | test/test-lib.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index df867a5..99b9e8b 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -902,10 +902,20 @@ test_emacs () { } 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 () { |