summaryrefslogtreecommitdiff
path: root/tests/twisted/account-storage/diverted-storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/account-storage/diverted-storage.py')
-rw-r--r--tests/twisted/account-storage/diverted-storage.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/twisted/account-storage/diverted-storage.py b/tests/twisted/account-storage/diverted-storage.py
index d645656e..608ad4eb 100644
--- a/tests/twisted/account-storage/diverted-storage.py
+++ b/tests/twisted/account-storage/diverted-storage.py
@@ -33,7 +33,13 @@ from mctest import (
import constants as cs
def test(q, bus, mc):
- empty_key_file_name = os.path.join(os.environ['MC_ACCOUNT_DIR'], 'accounts.cfg')
+ accounts_dir = os.environ['MC_ACCOUNT_DIR']
+ try:
+ os.mkdir(accounts_dir, 0700)
+ except OSError:
+ pass
+
+ empty_key_file_name = os.path.join(accounts_dir, 'accounts.cfg')
group = 'fakecm/fakeprotocol/someguy_40example_2ecom0'