Issue 30236: Add options --match and --failfast for test.regrtest in 2.7 (original) (raw)
Proposed patch adds options -m/--match and -G/--failfast for test.regrtest in 2.7. They are two the most wanted by me features absent in 2.7.
I use them when add new test in long running test file. Often this needs running the test multiple times, incrementally changing the test or code until the test cover all cases and successful. Waiting running other tests in the same file is just waste of time.
Other cases -- fast running tests related to some feature in different files. For example -m 'ickl' allows to run all pickle-related tests.
The code is backported from 3.3. This is the last version using getopt and the most compatible with 2.7. There was several major rewriting of regrtest in following versions.