Skip to content

Commit 3f548c6

Browse files
committed
teuthology/suite: teuthology.suite.main return job_count
Signed-off-by: Kamoltat Sirivadhna <[email protected]>
1 parent 7c5a031 commit 3f548c6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

teuthology/suite/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@ def main(args):
152152

153153
run = Run(conf)
154154
name = run.name
155-
run.prepare_and_schedule()
155+
job_count = run.prepare_and_schedule()
156156
if not conf.dry_run and conf.wait:
157157
return wait(name, config.max_job_time,
158158
conf.archive_upload_url)
159+
return job_count
159160

160161

161162
def get_rerun_filters(name, statuses):

teuthology/suite/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ def prepare_and_schedule(self):
449449
if num_jobs:
450450
self.write_result()
451451

452+
return num_jobs
453+
452454
def collect_jobs(self, arch, configs, newest=False, limit=0):
453455
jobs_to_schedule = []
454456
jobs_missing_packages = []

0 commit comments

Comments
 (0)