mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
Fix handling of broken tests.
Make sure to close the subtest for test_expect_equal_failure, just like in test_expect_equal.
This commit is contained in:
parent
b9d4af4641
commit
04d633c285
1 changed files with 2 additions and 0 deletions
2
test/test-lib.sh
Normal file → Executable file
2
test/test-lib.sh
Normal file → Executable file
|
@ -440,6 +440,8 @@ test_expect_equal ()
|
|||
|
||||
test_expect_equal_failure ()
|
||||
{
|
||||
exec 1>&6 2>&7 # Restore stdout and stderr
|
||||
inside_subtest=
|
||||
test "$#" = 3 && { prereq=$1; shift; } || prereq=
|
||||
test "$#" = 2 ||
|
||||
error "bug in the test script: not 2 or 3 parameters to test_expect_equal"
|
||||
|
|
Loading…
Reference in a new issue