summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/runtest_mp.py
Commit message (Collapse)AuthorAgeFilesLines
* Synchronize libregrtest from master to 3.6 (#2244)Victor Stinner2017-06-161-6/+5
| | | | | | | * bpo-30523: regrtest: Add --list-cases option (#2238) * bpo-30284: Fix regrtest for out of tree build (#1481) * bpo-30540: regrtest: add --matchfile option (#1909) * bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479) * bpo-30263: regrtest: log system load (#1452)
* regrtest: display test result (passed, failed, ...)Victor Stinner2016-05-201-2/+3
| | | | | * in multiprocessing mode: always display the result * sequential mode: only display the result if the test did not pass
* fix typo in commentVictor Stinner2016-03-291-1/+1
| | | | Thanks Arfrever for the report :)
* regrtest: when parallel tests are interrupted, display progressVictor Stinner2016-03-241-6/+18
|
* regrtest: mention in tests run sequentially or in parallelVictor Stinner2016-03-241-0/+2
|
* regrtest: display test duration in sequential modeVictor Stinner2016-03-231-5/+2
| | | | Only display duration if a test takes more than 30 seconds.
* regrtest: add timeout to main process when using -jNVictor Stinner2016-03-231-2/+11
| | | | | libregrtest: add a watchdog to run_tests_multiprocess() using faulthandler.dump_traceback_later().
* regrtest: display progress every 30 seconds (instead of 60 seconds) whenVictor Stinner2015-11-041-1/+1
| | | | running tests in multiprocessing mode (-jN).
* Merge from 3.5 for issue #25188.Brett Cannon2015-10-021-4/+7
|
* Issue #25220: Fix "-m test --forever"Victor Stinner2015-09-301-2/+1
| | | | | | | * Fix "-m test --forever": replace _test_forever() with self._test_forever() * Add unit test for --forever * Add unit test for a failing test * Fix also some pyflakes warnings in libregrtest
* Issue #25220, libregrtest: more verbose output for -jNVictor Stinner2015-09-301-11/+28
| | | | | When the -jN command line option is used, display tests running since at least 30 seconds every minute.
* Issue #25220, libregrtest: CleanupVictor Stinner2015-09-301-0/+1
| | | | | No need to support.verbose in Regrtest.run_tests(), it's always set in runtest().
* Issue #25220, libregrtest: Pass directly ns to runtest()Victor Stinner2015-09-301-5/+2
| | | | | | * Remove runtest_ns(): pass directly ns to runtest(). * Create also Regrtest.rerun_failed_tests() method. * Inline again Regrtest.run_test(): it's no more justified to have a method
* Issue #25220, libregrtest: Set support.use_resources in setup_tests()Victor Stinner2015-09-301-3/+2
| | | | | * Rename setup_python() to setup_tests() * Remove use_resources parameter of runtest()
* Issue #25220, libregrtest: Call setup_python(ns) in the slavesVictor Stinner2015-09-291-4/+4
| | | | | | | | | | Slaves (child processes running tests for regrtest -jN) now inherit --memlimit/-M, --threshold/-t and --nowindows/-n options. * -M, -t and -n are now supported with -jN * Factorize code to run tests. * run_test_in_subprocess() now pass the whole "ns" namespace to the child process.
* Issue #25220, libregrtest: Add runtest_ns() functionVictor Stinner2015-09-291-11/+13
| | | | | | * Factorize code to run tests. * run_test_in_subprocess() now pass the whole "ns" namespace to the child process.
* Issue #25220: Use print(flush=True) in libregrtestVictor Stinner2015-09-291-6/+3
|
* Issue #25220: Enhance regrtest -jNVictor Stinner2015-09-291-37/+90
| | | | | | | | | | Running the Python test suite with -jN now: - Display the duration of tests which took longer than 30 seconds - Display the tests currently running since at least 30 seconds - Display the tests we are waiting for when the test suite is interrupted Clenaup also run_test_in_subprocess() code.
* Don't strip refcount in libregrtest/runtest_mp.pyVictor Stinner2015-09-291-6/+0
| | | | | | | Python doesn't display the refcount anymore by default. It only displays it when -X showrefcount command line option is used, which is not the case here. regrtest can be run with -X showrefcount, the option is not inherited by child processes.
* Issue #25220: truncate some long lines in libregrtest/*.pyVictor Stinner2015-09-291-4/+8
|
* Issue #25220: Create libregrtest/runtest_mp.pyVictor Stinner2015-09-291-0/+158
Move the code to run tests in multiple processes using threading and subprocess to a new submodule. Move also slave_runner() (renamed to run_tests_slave()) and run_test_in_subprocess() (renamed to run_tests_in_subprocess()) there.