We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57cf47b commit fd71863Copy full SHA for fd71863
tests/lib/base.py
@@ -126,7 +126,7 @@ def init_c_parentfs(self):
126
self.__mk_dir__(self.mount_parent_abs_path)
127
if not self.travis:
128
self.__mount_parent_fs__()
129
- self.__mk_dir__(self.logs_abs_path)
+ self.__mk_dir__(self.logs_abs_path, allow_preexisting = True)
130
131
132
def init_d_childfs(self):
@@ -260,7 +260,11 @@ def __cleanup_loop_devices__(self):
260
assert find_loop_devices(self.image_abs_path) == []
261
262
263
- def __mk_dir__(self, in_path, in_fs_root = False):
+ def __mk_dir__(self, in_path, in_fs_root = False, allow_preexisting = False):
264
+
265
+ if allow_preexisting:
266
+ if os.path.isdir(in_path):
267
+ return
268
269
if not in_fs_root:
270
os.mkdir(in_path)
0 commit comments