Victor Stinner
e3510d74aa
bpo-31160: regrtest now reaps child processes ( #3044 )
...
Add a post_test_cleanup() function which currently only calls
support.reap_children().
2017-08-09 17:44:33 +02:00
Victor Stinner
21a0a6c9f8
threading_cleanup() failure marks test as ENV_CHANGED ( #2500 )
...
If threading_cleanup() fails to cleanup threads, set a a new
support.environment_altered flag to true, flag uses by save_env which
is used by regrtest to check if a test altered the environment. At
the end, the test file fails with ENV_CHANGED instead of SUCCESS, to
report that it altered the environment.
2017-06-30 10:59:52 +02:00
mlouielu
a49c935cfd
bpo-30523: regrtest: Add --list-cases option ( #2238 )
...
* bpo-30523: regrtest: Add --list-cases option
* bpo-30523: Enhance --list-cases
* Add get_abs_module() function, use it in list_cases()
* list_cases() now logs skipped tests into stderr
* Remove unused doctest
2017-06-16 11:36:19 +02:00
Serhiy Storchaka
839102603c
Issue #23839 : Various caches now are cleared before running every test file.
2016-11-11 11:46:44 +02:00
Victor Stinner
21c8c92422
Merge 3.5 (issue #27829 )
2016-09-23 11:15:50 +02:00
Victor Stinner
ab98367747
Cleanup libregrtest
...
* main.py: remove unused import
* runtest: simplify runtest_inner() parameters, reuse ns parameter
2016-08-22 14:28:52 +02:00
Victor Stinner
1b8b42344e
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
2016-05-20 13:37:40 +02:00
Victor Stinner
9759dd3343
Issue #26295 : When using "python3 -m test --testdir=TESTDIR", regrtest doesn't
...
add "test." prefix to test module names.
regrtest also prepends testdir to sys.path.
2016-03-30 02:32:52 +02:00
Victor Stinner
69649f21f0
regrtest: display test duration in sequential mode
...
Only display duration if a test takes more than 30 seconds.
2016-03-23 12:14:10 +01:00
Brett Cannon
11faa21843
Merge from 3.5 for issue #25188 .
2015-10-02 16:20:49 -07:00
Victor Stinner
6f20a2e01f
Issue #25220 , libregrtest: Pass directly ns to runtest()
...
* 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
2015-09-30 02:32:11 +02:00
Victor Stinner
a204502dbf
Issue #25220 , libregrtest: Set support.use_resources in setup_tests()
...
* Rename setup_python() to setup_tests()
* Remove use_resources parameter of runtest()
2015-09-30 02:17:28 +02:00
Victor Stinner
8bb19f094b
Issue #25220 , libregrtest: Add runtest_ns() function
...
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
2015-09-30 01:32:39 +02:00
Victor Stinner
f33536c430
Issue #25220 : Use print(flush=True) in libregrtest
2015-09-30 00:48:27 +02:00
Victor Stinner
56e05dd0b0
Issue #25220 : Create libregrtest/runtest_mp.py
...
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.
2015-09-29 23:15:38 +02:00
Victor Stinner
3844fe5ed8
Issue #25220 : Move most regrtest.py code to libregrtest
2015-09-26 10:38:01 +02:00