From 5bd7f620b8f714a4bf3c7d51cc4ee1f30a3ee012 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 19 Aug 2013 09:59:54 -0500 Subject: [PATCH] Add comment about portability to get_testdir_base() --- teuthology/misc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teuthology/misc.py b/teuthology/misc.py index 6a23515f70a63..725ff0994ac66 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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, -- 2.39.5