Skip to content

Add --prioritize to regrtest #132678

Closed
Closed
@ambv

Description

@ambv

From the added help:

--prioritize TEST1,TEST2,...
                 select these tests first, even if the order is randomized.

--prioritize is used to influence the order of selected tests, such that
the tests listed as an argument are executed first. This is especially
useful when combined with -j and -r to pin the longest-running tests
to start at the beginning of a test run. Pass --prioritize=test_a,test_b
to make test_a run first, followed by test_b, and then the other tests.
If test_a wasn't selected for execution by regular means, --prioritize will
not make it execute.

This is useful in general, but in particular for bigmem tests on buildbots where test_bigmem, test_lzma, and test_bz2 can take over 30 minutes each. Guaranteeing that the test run starts with those shortens the overall runtime of tests, which is otherwise pretty unpredictable due to -r.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtestsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions