From 0497d695ca796c4d19ad5ec08788bbb1f400c58c Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 26 Feb 2017 15:43:01 +0200 Subject: [PATCH] test: require test_begin_subtest before test_expect_code Unify the subtests by requiring test_begin_subtest before test_expect_code. (Similar change for test_expect_success has already been done.) 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 | 5 +++++ test/T000-basic.sh | 11 ++++------- test/T020-compact.sh | 3 ++- test/T050-new.sh | 4 ++-- test/T070-insert.sh | 34 ++++++++++++++++++++-------------- test/T150-tagging.sh | 13 +++++++++---- test/T160-json.sh | 8 ++++---- test/T400-hooks.sh | 14 ++++++++------ test/T570-revision-tracking.sh | 16 ++++++++-------- test/T600-named-queries.sh | 4 ++-- test/test-lib.sh | 18 +++++++++++------- 11 files changed, 75 insertions(+), 55 deletions(-) diff --git a/test/README b/test/README index 7acdb4b8..dcd05237 100644 --- a/test/README +++ b/test/README @@ -200,6 +200,11 @@ library for your script to use.