Skip to content

Commit d516927

Browse files
committed
suite.run: Fix parent commit search
We were only looking in ceph.git; look in e.g. ceph-ci.git if that is the ceph repo being tested. Signed-off-by: Zack Cerza <[email protected]>
1 parent 0b575ad commit d516927

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

teuthology/suite/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,11 @@ def schedule_suite(self):
680680
self.collect_jobs(arch, configs, self.args.newest, job_limit)
681681
if jobs_missing_packages and self.args.newest:
682682
if not sha1s:
683-
sha1s = util.find_git_parents('ceph', str(self.base_config.sha1), self.args.newest)
683+
sha1s = util.find_git_parents(
684+
self.ceph_repo_name,
685+
str(self.base_config.sha1),
686+
self.args.newest
687+
)
684688
if not sha1s:
685689
util.schedule_fail('Backtrack for --newest failed', name, dry_run=self.args.dry_run)
686690
cur_sha1 = sha1s.pop(0)

teuthology/suite/test/test_run_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def setup_method(self):
247247
suite_relpath='',
248248
suite_dir='suite_dir',
249249
suite_branch='main',
250-
suite_repo='main',
251-
ceph_repo='main',
250+
suite_repo='ceph',
251+
ceph_repo='ceph',
252252
ceph_branch='main',
253253
ceph_sha1='ceph_sha1',
254254
teuthology_branch='main',

0 commit comments

Comments
 (0)