mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
test: Report test failures from test_expect_*
This makes test_expect_* return non-zero if the test fails, so the caller can make decisions based on this, such as setting test prerequisites.
This commit is contained in:
parent
5ae1b9c328
commit
003e718020
1 changed files with 2 additions and 0 deletions
|
@ -563,6 +563,7 @@ test_failure_ () {
|
|||
test_failure=$(($test_failure + 1))
|
||||
test_failure_message_ "FAIL" "$@"
|
||||
test "$immediate" = "" || { GIT_EXIT_OK=t; exit 1; }
|
||||
return 1
|
||||
}
|
||||
|
||||
test_failure_message_ () {
|
||||
|
@ -584,6 +585,7 @@ test_known_broken_failure_ () {
|
|||
test_subtest_known_broken_=
|
||||
test_broken=$(($test_broken+1))
|
||||
test_failure_message_ "BROKEN" "$@"
|
||||
return 1
|
||||
}
|
||||
|
||||
test_debug () {
|
||||
|
|
Loading…
Reference in a new issue