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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/twisted/account-manager/make-valid.py b/tests/twisted/account-manager/make-valid.py
index ee3ee98f..457229db 100644
--- a/tests/twisted/account-manager/make-valid.py
+++ b/tests/twisted/account-manager/make-valid.py
@@ -40,6 +40,11 @@ def preseed():
accounts_dir = os.environ['MC_ACCOUNT_DIR']
+ try:
+ os.mkdir(accounts_dir, 0700)
+ except OSError:
+ pass
+
# The passwords are missing, so the accounts can't connect yet.
accounts_cfg = open(accounts_dir + '/accounts.cfg', 'w')
accounts_cfg.write("""# Telepathy accounts