Skip to content

Commit

Permalink
Merge PR #1951 into main
Browse files Browse the repository at this point in the history
* refs/pull/1951/head:
	teuthology/suite: use valid subset default for rerun without --subset

Reviewed-by: Casey Bodley <[email protected]>
  • Loading branch information
batrick committed May 31, 2024
2 parents 036ad57 + 8071609 commit 861a8dc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions teuthology/suite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,24 @@ def get_rerun_conf_overrides(conf):
log.info('Using rerun seed=%s', seed)
conf.seed = seed

subset = None if job0 is None else tuple(map(int, job0.get('subset').split('/')))
if job0 is not None:
subset = job0.get('subset', '1/1')
if subset is None:
subset = '1/1'
subset = tuple(map(int, subset.split('/')))
else:
subset = None
if conf.subset is not None and conf.subset != subset:
log.error('--subset %s does not match with '
'rerun subset: %s',
conf.subset, subset)
sys.exit(1)
else:
log.info('Using rerun subset=%s', subset)
conf.subset = subset
if subset == (1, 1):
conf.subset = None
else:
log.info('Using rerun subset=%s', subset)
conf.subset = subset

no_nested_subset = False if job0 is None else job0.get('no_nested_subset', False)
if conf.no_nested_subset is not None and conf.no_nested_subset != no_nested_subset:
Expand Down

0 comments on commit 861a8dc

Please sign in to comment.