]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
worker: Use 'suite_repo' in job config if present
authorZack Cerza <zack@redhat.com>
Wed, 30 Nov 2016 20:41:28 +0000 (13:41 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 2 Dec 2016 17:27:10 +0000 (10:27 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/worker.py

index 6498a4c47c5c7eaa9c3ac2f5b9e8d7b3770758c3..6dd6590babac07f8bbccf7d6994bf1c6223c74bd 100644 (file)
@@ -164,6 +164,9 @@ def prep_job(job_config, log_file_path, archive_dir):
         # last-in-suite jobs don't have suite_branch or branch set.
         ceph_branch = job_config.get('branch', 'master')
         suite_branch = job_config.get('suite_branch', ceph_branch)
+        suite_repo = job_config.get('suite_repo')
+        if suite_repo:
+            teuth_config.ceph_qa_suite_git_url = suite_repo
         job_config['suite_path'] = fetch_qa_suite(suite_branch)
     except BranchNotFoundError as exc:
         log.exception("Branch not found; marking job as dead")