Skip to content

Commit 13d1c6d

Browse files
committed
teuthology/suite: teuthology.suite.main return job_count
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
1 parent f3380ce commit 13d1c6d

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
@@ -144,10 +144,11 @@ def main(args):
144144

145145
run = Run(conf)
146146
name = run.name
147-
run.prepare_and_schedule()
147+
job_count = run.prepare_and_schedule()
148148
if not conf.dry_run and conf.wait:
149149
return wait(name, config.max_job_time,
150150
conf.archive_upload_url)
151+
return job_count
151152

152153

153154
def get_rerun_conf_overrides(conf):

teuthology/suite/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ def prepare_and_schedule(self):
497497
if num_jobs:
498498
self.write_result()
499499

500+
return num_jobs
501+
500502
def collect_jobs(self, arch, configs, newest=False, limit=0):
501503
jobs_to_schedule = []
502504
jobs_missing_packages = []

0 commit comments

Comments
 (0)