]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add get_archive_dir()
authorZack Cerza <zack@cerza.org>
Wed, 4 Sep 2013 15:16:17 +0000 (10:16 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 5 Sep 2013 21:55:37 +0000 (16:55 -0500)
teuthology/misc.py

index bf9497b6102c7311b487f5c9bd80360faf76d2c5..dce2e1000eb4f1e76bc089f9b750c440d4ad2c4f 100644 (file)
@@ -104,6 +104,10 @@ def get_testdir_base(ctx):
     return ctx.teuthology_config.get('base_test_dir', '/home/%s/cephtest' %
                                      test_user)
 
+def get_archive_dir(ctx):
+    test_dir = get_testdir(ctx)
+    return os.path.normpath(os.path.join(test_dir, 'archive'))
+
 def get_ceph_binary_url(package=None,
                         branch=None, tag=None, sha1=None, dist=None,
                         flavor=None, format=None, arch=None):