]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH...
authorPablo Galindo <Pablogsal@gmail.com>
Tue, 19 Nov 2019 23:46:49 +0000 (23:46 +0000)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2019 23:46:49 +0000 (23:46 +0000)
commite0cd8aa70a3ce19c3d3712568940aa0cbd9aa97b
tree6399ae3384460b71742378f52878cd11464f9e17
parentef5aa9af7c7e493402ac62009e4400aed7c3d54e
bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989)

When building Python in some uncommon platforms there are some known tests that will fail. Right now, the test suite has the ability to ignore entire tests using the -x option and to receive a filter file using the --matchfile filter. The problem with the --matchfile option is that it receives a file with patterns to accept and when you want to ignore a couple of tests and subtests, is too cumbersome to lists ALL tests that are not the ones that you want to accept and he problem with -x is that is not easy to ignore just a subtests that fail and the whole test needs to be ignored.

For these reasons, add a new option to allow to ignore a list of test and subtests for these situations.
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest.py
Lib/test/support/__init__.py
Lib/test/test_regrtest.py
Lib/test/test_support.py
Misc/NEWS.d/next/Tests/2019-10-30-00-01-43.bpo-37957.X1r78F.rst [new file with mode: 0644]