@@ -219,41 +219,44 @@ test_expect_success 'subtest: --verbose option' '
219219 test_expect_success "failing test" false
220220 test_done
221221 EOF
222- mv t1234-verbose/out t1234-verbose/out + &&
223- grep -v "^Initialized empty" t1234-verbose/out + >t1234-verbose/out &&
224- check_sub_test_lib_test t1234-verbose <<-\EOF
225- > expecting success of 1234.1 ' \' ' passing test ' \' ' : true
222+ mv t1234-verbose/err t1234-verbose/err + &&
223+ grep -v "^Initialized empty" t1234-verbose/err + >t1234-verbose/err &&
224+ check_sub_test_lib_test_err t1234-verbose \
225+ <<-\EOF_OUT 3<<-\EOF_ERR
226226 > ok 1 - passing test
227+ > ok 2 - test with output
228+ > not ok 3 - failing test
229+ > # false
230+ > # failed 1 among 3 test(s)
231+ > 1..3
232+ EOF_OUT
233+ > expecting success of 1234.1 ' \' ' passing test' \' ' : true
227234 > Z
228235 > expecting success of 1234.2 ' \' ' test with output' \' ' : echo foo
229236 > foo
230- > ok 2 - test with output
231237 > Z
232238 > expecting success of 1234.3 ' \' ' failing test' \' ' : false
233- > not ok 3 - failing test
234- > # false
235239 > Z
236- > # failed 1 among 3 test(s)
237- > 1..3
238- EOF
240+ EOF_ERR
239241'
240242
241243test_expect_success ' subtest: --verbose-only option' '
242244 run_sub_test_lib_test_err \
243245 t1234-verbose \
244246 --verbose-only=2 &&
245- check_sub_test_lib_test t1234-verbose <<-\EOF
247+ check_sub_test_lib_test_err t1234-verbose <<-\EOF_OUT 3<<-\EOF_ERR
246248 > ok 1 - passing test
247- > Z
248- > expecting success of 1234.2 ' \' ' test with output' \' ' : echo foo
249- > foo
250249 > ok 2 - test with output
251- > Z
252250 > not ok 3 - failing test
253251 > # false
254252 > # failed 1 among 3 test(s)
255253 > 1..3
256- EOF
254+ EOF_OUT
255+ > Z
256+ > expecting success of 1234.2 ' \' ' test with output' \' ' : echo foo
257+ > foo
258+ > Z
259+ EOF_ERR
257260'
258261
259262test_expect_success ' subtest: skip one with GIT_SKIP_TESTS' '
0 commit comments