]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36915: regrtest always remove tempdir of worker processes (GH-13312)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 May 2019 15:25:06 +0000 (08:25 -0700)
committerGitHub <noreply@github.com>
Tue, 14 May 2019 15:25:06 +0000 (08:25 -0700)
commitecd668d6d99ff03166427f02347454cfdf904a6c
tree29295b7180148ece495cf94430444efad2c2d27a
parent8b3823ae16d68cf17ad037e46d7e49d26929a13b
bpo-36915: regrtest always remove tempdir of worker processes (GH-13312)

When using multiprocessing (-jN option), worker processes now create
their temporary directory inside the temporary directory of the
main process. So the main process is able to remove temporary
directories of worker processes even if they crash or when they are
killed by regrtest on KeyboardInterrupt (CTRL+c).

Rework also how multiprocessing arguments are parsed in main.py.
(cherry picked from commit 3c93153f7db5dd9b06f229e61978fd9199b3c097)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest_mp.py
Misc/NEWS.d/next/Tests/2019-05-14-14-12-24.bpo-36915.58b7pH.rst [new file with mode: 0644]