]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add comment about portability to get_testdir_base()
authorZack Cerza <zack@cerza.org>
Mon, 19 Aug 2013 14:59:54 +0000 (09:59 -0500)
committerZack Cerza <zack@cerza.org>
Mon, 19 Aug 2013 14:59:54 +0000 (09:59 -0500)
teuthology/misc.py

index 6a23515f70a63227e1c4b7d65ff45493b632db98..725ff0994ac66e6b9b80787cf2c82ac5e2befee1 100644 (file)
@@ -88,6 +88,9 @@ def get_testdir_base(ctx):
     if 'test_path' in ctx.teuthology_config:
         return ctx.teuthology_config['test_path']
     owner_user = ctx.owner.split('@')[0]
+    # FIXME this ideally should use os.path.expanduser() in the future, in case
+    # $HOME isn't /home/$USER - e.g. on a Mac. However, since we're executing
+    # this on the server side, it won't work properly.
     return ctx.teuthology_config.get('base_test_dir', '/home/%s/cephtest' % owner_user)
 
 def get_ceph_binary_url(package=None,