]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't assume the ubuntu user when getting the test dir.
authorZack Cerza <zack@cerza.org>
Thu, 15 Aug 2013 15:58:45 +0000 (10:58 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 15 Aug 2013 15:58:45 +0000 (10:58 -0500)
teuthology/misc.py

index eeb4dc11d669e2ab7e6ab7425dc19ffb8f2df35c..6a23515f70a63227e1c4b7d65ff45493b632db98 100644 (file)
@@ -87,7 +87,8 @@ def get_testdir(ctx):
 def get_testdir_base(ctx):
     if 'test_path' in ctx.teuthology_config:
         return ctx.teuthology_config['test_path']
-    return ctx.teuthology_config.get('base_test_dir', '/home/ubuntu/cephtest')
+    owner_user = ctx.owner.split('@')[0]
+    return ctx.teuthology_config.get('base_test_dir', '/home/%s/cephtest' % owner_user)
 
 def get_ceph_binary_url(package=None,
                         branch=None, tag=None, sha1=None, dist=None,