diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-24 10:03:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 10:03:00 (GMT) |
commit | 47fbc4e45b35b3111e2d947a66490a43ac21d363 (patch) | |
tree | 9b10bbfc6521c08dc251a028bb6df790d55c2c96 /Lib/test/libregrtest/cmdline.py | |
parent | 2ac3bab2a6e1f9e17fc0c58a26e8425bb93cb0f5 (diff) | |
download | cpython-47fbc4e45b35b3111e2d947a66490a43ac21d363.zip cpython-47fbc4e45b35b3111e2d947a66490a43ac21d363.tar.gz cpython-47fbc4e45b35b3111e2d947a66490a43ac21d363.tar.bz2 |
bpo-37359: Add --cleanup option to python3 -m test (GH-14332)
* regrtest: Add --cleanup option to remove "test_python_*" directories
of previous failed test jobs.
* Add "make cleantest" to run "python3 -m test --cleanup".
Diffstat (limited to 'Lib/test/libregrtest/cmdline.py')
-rw-r--r-- | Lib/test/libregrtest/cmdline.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/cmdline.py b/Lib/test/libregrtest/cmdline.py index dc0d880..9f1bf68 100644 --- a/Lib/test/libregrtest/cmdline.py +++ b/Lib/test/libregrtest/cmdline.py @@ -272,8 +272,10 @@ def _create_parser(): group.add_argument('--junit-xml', dest='xmlpath', metavar='FILENAME', help='writes JUnit-style XML results to the specified ' 'file') - group.add_argument('--tempdir', dest='tempdir', metavar='PATH', + group.add_argument('--tempdir', metavar='PATH', help='override the working directory for the test run') + group.add_argument('--cleanup', action='store_true', + help='remove old test_python_* directories') return parser |