mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
regrtest: Prepend 'use' options in --{fast,slow}-ci (GH-110363)
This allows individual resources to be disabled without having to explicitly re-enable all others.
This commit is contained in:
parent
42a5d21d46
commit
b75186f69e
2 changed files with 11 additions and 7 deletions
|
@ -417,14 +417,16 @@ def _parse_args(args, **kwargs):
|
|||
# --slow-ci has the priority
|
||||
if ns.slow_ci:
|
||||
# Similar to: -u "all" --timeout=1200
|
||||
if not ns.use:
|
||||
ns.use = [['all']]
|
||||
if ns.use is None:
|
||||
ns.use = []
|
||||
ns.use.insert(0, ['all'])
|
||||
if ns.timeout is None:
|
||||
ns.timeout = 1200 # 20 minutes
|
||||
elif ns.fast_ci:
|
||||
# Similar to: -u "all,-cpu" --timeout=600
|
||||
if not ns.use:
|
||||
ns.use = [['all', '-cpu']]
|
||||
if ns.use is None:
|
||||
ns.use = []
|
||||
ns.use.insert(0, ['all', '-cpu'])
|
||||
if ns.timeout is None:
|
||||
ns.timeout = 600 # 10 minutes
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue