summaryrefslogtreecommitdiff
path: root/tests/twisted/account-manager/gvariant-accounts.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/account-manager/gvariant-accounts.py')
-rw-r--r--tests/twisted/account-manager/gvariant-accounts.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/twisted/account-manager/gvariant-accounts.py b/tests/twisted/account-manager/gvariant-accounts.py
index 50c05cf7..6666e186 100644
--- a/tests/twisted/account-manager/gvariant-accounts.py
+++ b/tests/twisted/account-manager/gvariant-accounts.py
@@ -34,7 +34,10 @@ def preseed():
accounts_dir = os.environ['MC_ACCOUNT_DIR']
escaped = account1_id.replace('/', '_')
- filename = accounts_dir + '/' + escaped
+ filename = accounts_dir + '/mission-control/accounts/' + escaped
+
+ os.makedirs(os.path.dirname(filename), 0700)
+
account = open(filename, 'w')
account.write("""{
'id': <'%s'>,
@@ -114,7 +117,7 @@ def test(q, bus, unused):
accounts_dir = os.environ['MC_ACCOUNT_DIR']
name = 'fakecm/fakeprotocol/dontdivert_40bar_2ecom0'
- second_filename = os.path.join(accounts_dir, name.replace('/', '_'))
+ second_filename = accounts_dir + '/mission-control/accounts/' + name.replace('/', '_')
assert not os.path.exists(second_filename)
path = am.CreateAccount('fakecm', 'fakeprotocol', 'Display name', parameters, {})