]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't remove the teuthology repo if errors occur
authorZack Cerza <zack@cerza.org>
Thu, 3 Jul 2014 00:27:09 +0000 (18:27 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 3 Jul 2014 00:27:09 +0000 (18:27 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/suite.py

index 7dc59d4cbe5c8626cf9fc3da52a818afa60bee8b..9ce500f85e1ed12fd5189b74ed37b3336482ff46 100644 (file)
@@ -127,12 +127,15 @@ def fetch_suite_repo(branch, test_name):
         enforce_repo_state(
             repo_url=os.path.join(config.ceph_git_base_url, 'teuthology.git'),
             dest_path=os.path.join(src_base_path, 'teuthology'),
-            branch='master')
+            branch='master',
+            remove_on_error=False,
+        )
         enforce_repo_state(
             repo_url=os.path.join(config.ceph_git_base_url,
                                   'ceph-qa-suite.git'),
             dest_path=suite_repo_path,
-            branch=branch)
+            branch=branch,
+        )
     except BranchNotFoundError as exc:
         schedule_fail(message=str(exc), name=test_name)
     return suite_repo_path