summaryrefslogtreecommitdiff
path: root/tests/twisted/account-manager/avatar-refresh.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/account-manager/avatar-refresh.py')
-rw-r--r--tests/twisted/account-manager/avatar-refresh.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/twisted/account-manager/avatar-refresh.py b/tests/twisted/account-manager/avatar-refresh.py
index 6792c4fa..5fa132e0 100644
--- a/tests/twisted/account-manager/avatar-refresh.py
+++ b/tests/twisted/account-manager/avatar-refresh.py
@@ -41,9 +41,11 @@ def preseed():
accounts_dir = os.environ['MC_ACCOUNT_DIR']
escaped = account_id.replace('/', '_')
- filename = accounts_dir + '/' + escaped
- account = open(filename, 'w')
+ filename = accounts_dir + '/mission-control/accounts/' + escaped
+
+ os.makedirs(os.path.dirname(filename))
+ account = open(filename, 'w')
account.write("""{
'id': <'%s'>,
'manager': <'fakecm'>,