From 9ca70bd514a4272a4bababd9228ae4905993a210 Mon Sep 17 00:00:00 2001 From: Kamoltat Sirivadhna Date: Wed, 13 Mar 2024 09:48:02 -0400 Subject: [PATCH] teuthology/suite: teuthology.suite.main return job_count Signed-off-by: Kamoltat Sirivadhna --- teuthology/suite/__init__.py | 3 ++- teuthology/suite/run.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/teuthology/suite/__init__.py b/teuthology/suite/__init__.py index 833493d25..394666b9c 100644 --- a/teuthology/suite/__init__.py +++ b/teuthology/suite/__init__.py @@ -153,10 +153,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): diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index 30c5142cd..b3e31179b 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -449,6 +449,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 = []