aboutsummaryrefslogtreecommitdiffstats
path: root/test/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/util.py')
-rw-r--r--test/util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/util.py b/test/util.py
index 0a1fa93..623b031 100644
--- a/test/util.py
+++ b/test/util.py
@@ -151,6 +151,12 @@ def powerset(iterable):
return itertools.chain.from_iterable(
itertools.combinations(s, r) for r in range(len(s)+1))
+def create_tmpdir(mnt_dir):
+ if not os.path.exists(mnt_dir):
+ print("makedirs: '" + mnt_dir + "'")
+ os.makedirs(mnt_dir)
+ else:
+ print("mnt_dir exists: '" + mnt_dir + "'")
# Use valgrind if requested
if os.environ.get('TEST_WITH_VALGRIND', 'no').lower().strip() \