summaryrefslogtreecommitdiff
path: root/src/leap/soledad/tests
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-05-03 17:20:34 -0300
committerdrebs <drebs@leap.se>2013-05-03 17:20:34 -0300
commit54e463be00de78a336f4e547634a77faf6a60b37 (patch)
treeb1645b01f824118a0fdf42195f756ac1f9870770 /src/leap/soledad/tests
parenta66c472b09015c4310519bc71eeef925d9041de6 (diff)
Use mkdir_p from leap.common.
Diffstat (limited to 'src/leap/soledad/tests')
-rw-r--r--src/leap/soledad/tests/test_couch.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/soledad/tests/test_couch.py b/src/leap/soledad/tests/test_couch.py
index 9ac07f88..d6b9ad83 100644
--- a/src/leap/soledad/tests/test_couch.py
+++ b/src/leap/soledad/tests/test_couch.py
@@ -24,6 +24,9 @@ import re
import copy
import shutil
from base64 import b64decode
+
+from leap.common.files import mkdir_p
+
from leap.soledad.backends import couch
from leap.soledad.tests import u1db_tests as tests
from leap.soledad.tests.u1db_tests import test_backends
@@ -77,8 +80,8 @@ class CouchDBWrapper(object):
handle.close()
# create the dirs from the template
- os.mkdir(os.path.join(self.tempdir, 'lib'))
- os.mkdir(os.path.join(self.tempdir, 'log'))
+ mkdir_p(os.path.join(self.tempdir, 'lib'))
+ mkdir_p(os.path.join(self.tempdir, 'log'))
args = ['couchdb', '-n', '-a', confPath]
#null = open('/dev/null', 'w')
self.process = subprocess.Popen(