Skip to content

Commit

Permalink
teuthology/suite: teuthology.suite.main return job_count
Browse files Browse the repository at this point in the history
Signed-off-by: Kamoltat Sirivadhna <[email protected]>
  • Loading branch information
kamoltat committed Oct 2, 2024
1 parent 5d225dd commit 340e02b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion teuthology/suite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ def main(args):

run = Run(conf)
name = run.name
run.prepare_and_schedule()
job_count = run.prepare_and_schedule()
if not conf.dry_run and conf.wait:
return wait(name, config.max_job_time,
conf.archive_upload_url)
return job_count


def get_rerun_conf_overrides(conf):
Expand Down
2 changes: 2 additions & 0 deletions teuthology/suite/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ def prepare_and_schedule(self):
if num_jobs:
self.write_result()

return num_jobs

def collect_jobs(self, arch, configs, newest=False, limit=0):
jobs_to_schedule = []
jobs_missing_packages = []
Expand Down

0 comments on commit 340e02b

Please sign in to comment.