sha1s = util.find_git_parents('ceph', str(self.base_config.sha1), self.args.newest)
if not sha1s:
util.schedule_fail('Backtrack for --newest failed', name, dry_run=self.args.dry_run)
- self.config_input['ceph_hash'] = sha1s.pop(0)
+ cur_sha1 = sha1s.pop(0)
+ self.config_input['ceph_hash'] = cur_sha1
+ # If ceph_branch and suite_branch are the same and
+ # ceph_repo and suite_repo are the same, update suite_hash
+ if (self.args.ceph_repo == self.args.suite_repo) and \
+ (self.args.ceph_branch == self.args.suite_branch):
+ self.config_input['suite_hash'] = cur_sha1
self.base_config = self.build_base_config()
backtrack += 1
continue