mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
regrtest: display test result (passed, failed, ...)
* in multiprocessing mode: always display the result * sequential mode: only display the result if the test did not pass
This commit is contained in:
parent
6d81a2136d
commit
1b8b42344e
3 changed files with 26 additions and 8 deletions
|
@ -14,7 +14,8 @@ except ImportError:
|
|||
sys.exit(2)
|
||||
|
||||
from test.libregrtest.runtest import (
|
||||
runtest, INTERRUPTED, CHILD_ERROR, PROGRESS_MIN_TIME)
|
||||
runtest, INTERRUPTED, CHILD_ERROR, PROGRESS_MIN_TIME,
|
||||
format_test_result)
|
||||
from test.libregrtest.setup import setup_tests
|
||||
|
||||
|
||||
|
@ -196,8 +197,8 @@ def run_tests_multiprocess(regrtest):
|
|||
regrtest.accumulate_result(test, result)
|
||||
|
||||
# Display progress
|
||||
text = test
|
||||
ok, test_time = result
|
||||
text = format_test_result(test, ok)
|
||||
if (ok not in (CHILD_ERROR, INTERRUPTED)
|
||||
and test_time >= PROGRESS_MIN_TIME
|
||||
and not regrtest.ns.pgo):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue