gh-109276: Enhance libregrtest results (#109828)

* Factorize code listing "bad / env changed / ..." tests.
* Add TestResults.is_all_good() method.
* Move "All 400 tests OK." to the end
* Move "Test suite interrupted by signal SIGINT." to the end.
This commit is contained in:
Victor Stinner 2023-09-25 15:50:15 +02:00 committed by GitHub
parent f29bc9c9a0
commit faebed4a67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 38 deletions

View file

@ -500,7 +500,8 @@ class BaseTestCase(unittest.TestCase):
self.check_line(output, regex)
if env_changed:
regex = list_regex('%s test%s altered the execution environment',
regex = list_regex(r'%s test%s altered the execution environment '
r'\(env changed\)',
env_changed)
self.check_line(output, regex)