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 May 8, 2024
1 parent 9cdf043 commit 27db304
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 @@ -152,10 +152,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_filters(name, statuses):
Expand Down
2 changes: 2 additions & 0 deletions teuthology/suite/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,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 27db304

Please sign in to comment.