[3.11] [3.12] gh-83434: Sync libregrtest and test_regrtest with the main branch (GH-117250) #117251
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
regrtest: add --bisect option to run test.bisect_cmd on failed tests #115122: Add --bisect option to regrtest (gh-115122: Add --bisect option to regrtest #115123)
test.bisect_cmd now exit with code 0 on success, and code 1 on
failure. Before, it was the opposite.
test.bisect_cmd now runs the test worker process with
-X faulthandler.
regrtest RunTests: Add create_python_cmd() and bisect_cmd()
methods.
(cherry picked from commit 1e5719a)
Instead of showing a dot for each iteration, show:
This allows more rapid iteration: when bisecting, I don't need
to wait for the final report to see if the test still leaks.
Also, show the full result if there are any non-zero entries.
This shows negative entries, for the unfortunate cases where
a reference is created and cleaned up in different runs.
Test failure is still determined by the existing heuristic.
(cherry picked from commit af5f9d6)
(cherry picked from commit d52bdfb)
(cherry picked from commit 477ef90)
Co-authored-by: Victor Stinner [email protected]
Co-authored-by: Petr Viktorin [email protected]