Skip to content

Commit e386dbf

Browse files
committed
ensure parent directory exists before allocating test image
Signed-off-by: Zen <[email protected]>
1 parent f065092 commit e386dbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ugrd/fs/test_image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.0"
1+
__version__ = "1.0.1"
22

33
from zenlib.util import contains
44

@@ -11,6 +11,7 @@ def init_banner(self):
1111

1212
def _allocate_image(self, image_path, padding=0):
1313
"""Allocate the test image size"""
14+
self._mkdir(image_path.parent, resolve_build=False) # Make sure the parent directory exists
1415
if image_path.exists():
1516
if self.clean:
1617
self.logger.warning("Removing existing filesystem image file: %s" % image_path)

0 commit comments

Comments
 (0)