Only schedule --first-in-suite and --last-in-suite jobs
once per run when --num is provided for a suite.
Fixes: https://tracker.ceph.com/issues/45520
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
def build_base_args(self):
base_args = [
'--name', self.name,
- '--num', str(self.args.num),
'--worker', util.get_worker(self.args.machine_type),
]
if self.args.dry_run:
arg = copy.deepcopy(self.base_args)
arg.extend([
+ '--num', str(self.args.num),
'--description', description,
'--',
])
# schedule_jobs() is just neutered; check calls below
self.args.newest = 0
+ self.args.num = 42
runobj = self.klass(self.args)
runobj.base_args = list()
count = runobj.schedule_suite()
yaml=yaml.safe_load('\n'.join(frags)),
sha1='ceph_sha1',
args=[
+ '--num',
+ '42',
'--description',
os.path.join(self.args.suite, build_matrix_desc),
'--',