From d0cd253b37646d9364d046e1d3edb022a58c105a Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 26 Feb 2017 15:43:00 +0200 Subject: [PATCH] test: require test_begin_subtest before test_expect_success Unify the subtests by requiring test_begin_subtest before test_expect_success. (Similar change for test_expect_code will follow.) This increases clarity in the test scripts by having a separate line for the start of the subtest with the heading, and makes it possible to simplify the test infrastructure by making all subtests similar. --- test/README | 14 +++++++------- test/T000-basic.sh | 33 +++++++++++++-------------------- test/T010-help-test.sh | 27 ++++++++++++++++++--------- test/T020-compact.sh | 7 ++++--- test/T190-multipart.sh | 20 ++++++++------------ test/T240-dump-restore.sh | 33 ++++++++++++++++++++------------- test/T310-emacs.sh | 9 ++++----- test/T340-maildir-sync.sh | 6 ++++-- test/T350-crypto.sh | 9 ++++++--- test/T355-smime.sh | 6 ++++-- test/T380-atomicity.sh | 3 ++- test/T400-hooks.sh | 4 ++-- test/T530-upgrade.sh | 5 +++-- test/T560-lib-error.sh | 3 ++- test/T570-revision-tracking.sh | 16 ++++++++-------- test/T600-named-queries.sh | 8 ++++---- test/test-lib.sh | 18 +++++++++++------- test/test-verbose | 6 ++++-- 18 files changed, 124 insertions(+), 103 deletions(-) diff --git a/test/README b/test/README index 104a120e..7acdb4b8 100644 --- a/test/README +++ b/test/README @@ -189,17 +189,17 @@ Test harness library There are a handful helper functions defined in the test harness library for your script to use. - test_expect_success