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 /Makefile.pre.in | |
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 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index f629336..ef9a4f8 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1104,6 +1104,11 @@ TESTTIMEOUT= 1200 .PHONY: test testall testuniversal buildbottest pythoninfo +# Remove "test_python_*" directories of previous failed test jobs. +# Pass TESTOPTS options because it can contain --tempdir option. +cleantest: build_all + $(TESTRUNNER) $(TESTOPTS) --cleanup + # Run a basic set of regression tests. # This excludes some tests that are particularly resource-intensive. test: @DEF_MAKE_RULE@ platform |