]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add --suite-path
authorZack Cerza <zack.cerza@inktank.com>
Thu, 21 Aug 2014 22:10:22 +0000 (16:10 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Thu, 21 Aug 2014 22:11:19 +0000 (16:11 -0600)
Slightly less ugly than setting PYTHONPATH

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
scripts/run.py
teuthology/run.py

index 0a34d80d16ef730fa8e4c122d594389c2bcdc5ad..f748f47d73f45b3d9fce0e804cfe0943ed38e627 100644 (file)
@@ -75,5 +75,9 @@ def parse_args():
         metavar='NAME',
         help='name for this teuthology run',
     )
+    parser.add_argument(
+        '--suite-path',
+        help='Location of ceph-qa-suite on disk. If not specified, it will be fetched',  # noqa
+    )
 
     return parser.parse_args()
index 96cca618c33c1352ff34bde0e57241bfb1640c41..0385e63403a343709254b67d387f99a0ffa53d69 100644 (file)
@@ -176,6 +176,9 @@ def main(ctx):
 
     ctx.config['tasks'][:0] = init_tasks
 
+    if ctx.suite_path is not None:
+        ctx.config['suite_path'] = ctx.suite_path
+
     fetch_tasks_if_needed(ctx.config)
 
     try: