t0000: replace test_must_fail with run_sub_test_lib_test_err()
commit7717242014dc59f58db7e56c2b8f9fc79e04fa0b
authorDenton Liu <liu.denton@gmail.com>
Fri, 20 Dec 2019 18:15:49 +0000 (20 10:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2019 19:30:44 +0000 (20 11:30 -0800)
tree00a0352de16f1ca6957ee219e6391636516db1cc
parentb8afb908c261752310d4792f901c68fe27b77b40
t0000: replace test_must_fail with run_sub_test_lib_test_err()

The test_must_fail function should only be used for git commands since
we should assume that external commands work sanely. We use
test_must_fail to test run_sub_test_lib_test() but that function does
not invoke any git commands internally. Even better, we have a function
that's exactly meant to be used when we expect to have a failing test
suite: run_sub_test_lib_test_err()!

Replace `test_must_fail run_sub_test_lib_test` with
`run_sub_test_lib_test_err`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0000-basic.sh