diff options
| author | Jani Nikula <jani@nikula.org> | 2017-02-26 15:43:00 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-09 09:01:21 -0400 |
| commit | d0cd253b37646d9364d046e1d3edb022a58c105a (patch) | |
| tree | ff9af83a8bd1e3380e81c3e3d73389fc98d190a7 /test/test-verbose | |
| parent | b8f12bd3717aa446ef04197734af7a055e6909fe (diff) | |
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.
Diffstat (limited to 'test/test-verbose')
| -rwxr-xr-x | test/test-verbose | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test-verbose b/test/test-verbose index 1723ce66..158be28a 100755 --- a/test/test-verbose +++ b/test/test-verbose @@ -4,12 +4,14 @@ test_description='the verbosity options of the test framework itself.' . ./test-lib.sh || exit 1 -test_expect_success 'print something in test_expect_success and pass' ' +test_begin_subtest 'print something in test_expect_success and pass' +test_expect_success ' echo "hello stdout" && echo "hello stderr" >&2 && true ' -test_expect_success 'print something in test_expect_success and fail' ' +test_begin_subtest 'print something in test_expect_success and fail' +test_expect_success ' echo "hello stdout" && echo "hello stderr" >&2 && false |
