]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
run: Use suite_relpath if set
authorZack Cerza <zack@redhat.com>
Wed, 30 Nov 2016 21:22:10 +0000 (14:22 -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/run.py

index 756fc25c86328ef0926087cd69323de82c50b4d6..2b469227e2d100253dda821c05082d14d628aef8 100644 (file)
@@ -94,8 +94,14 @@ def fetch_tasks_if_needed(job_config):
         log.info("Tasks not found; will attempt to fetch")
 
     ceph_branch = job_config.get('branch', 'master')
+    suite_repo = job_config.get('suite_repo')
+    if suite_repo:
+        teuth_config.ceph_qa_suite_git_url = suite_repo
     suite_branch = job_config.get('suite_branch', ceph_branch)
-    suite_path = fetch_qa_suite(suite_branch)
+    suite_path = os.path.normpath(os.path.join(
+        fetch_qa_suite(suite_branch),
+        job_config.get('suite_relpath', ''),
+    ))
     sys.path.insert(1, suite_path)
     return suite_path