summaryrefslogtreecommitdiff
path: root/tests/twisted/account-manager/make-valid.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/account-manager/make-valid.py')
-rw-r--r--tests/twisted/account-manager/make-valid.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/twisted/account-manager/make-valid.py b/tests/twisted/account-manager/make-valid.py
index 6023749d..a95650d4 100644
--- a/tests/twisted/account-manager/make-valid.py
+++ b/tests/twisted/account-manager/make-valid.py
@@ -43,9 +43,11 @@ def preseed():
# The passwords are missing, so the accounts can't connect yet.
escaped = account1_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'>,
@@ -64,9 +66,9 @@ def preseed():
account.close()
escaped = account2_id.replace('/', '_')
- filename = accounts_dir + '/' + escaped
- account = open(filename, 'w')
+ filename = accounts_dir + '/mission-control/accounts/' + escaped
+ account = open(filename, 'w')
account.write("""{
'id': <'%s'>,
'manager': <'fakecm'>,