aboutsummaryrefslogtreecommitdiff
path: root/test/T050-new.sh
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-02-26 15:43:01 +0200
committerDavid Bremner <david@tethera.net>2017-03-09 09:03:40 -0400
commit0497d695ca796c4d19ad5ec08788bbb1f400c58c (patch)
treea398c1a25282da030dc86bf5ac2b64b583b788e3 /test/T050-new.sh
parentd0cd253b37646d9364d046e1d3edb022a58c105a (diff)
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.
Diffstat (limited to 'test/T050-new.sh')
-rwxr-xr-xtest/T050-new.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/T050-new.sh b/test/T050-new.sh
index 9115de82..ffa303ef 100755
--- a/test/T050-new.sh
+++ b/test/T050-new.sh
@@ -286,8 +286,8 @@ notmuch config set new.tags "-foo;bar"
output=$(NOTMUCH_NEW --debug 2>&1)
test_expect_equal "$output" "Error: tag '-foo' in new.tags: tag starting with '-' forbidden"
-test_expect_code 1 "Invalid tags set exit code" \
- "NOTMUCH_NEW --debug 2>&1"
+test_begin_subtest "Invalid tags set exit code"
+test_expect_code 1 "NOTMUCH_NEW --debug 2>&1"
notmuch config set new.tags $OLDCONFIG