summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/runtest_mp.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-05-20 11:37:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-05-20 11:37:40 (GMT)
commit1b8b42344ed3f6a982b26fcc4255b8490c059527 (patch)
treedd6109a6e1759a6ea5015a9eefd5f7f604fa35c7 /Lib/test/libregrtest/runtest_mp.py
parent6d81a2136d61cb787e7bd7fc26a7ba2a363d8c40 (diff)
downloadcpython-1b8b42344ed3f6a982b26fcc4255b8490c059527.zip
cpython-1b8b42344ed3f6a982b26fcc4255b8490c059527.tar.gz
cpython-1b8b42344ed3f6a982b26fcc4255b8490c059527.tar.bz2
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
Diffstat (limited to 'Lib/test/libregrtest/runtest_mp.py')
-rw-r--r--Lib/test/libregrtest/runtest_mp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py
index 33f632d..9604c16 100644
--- a/Lib/test/libregrtest/runtest_mp.py
+++ b/Lib/test/libregrtest/runtest_mp.py
@@ -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):