Do any of the tests care about if the file is sparse or not? I suspect they do
not.
What if we just did this?
diff --git a/tests/integration/test_block_meta.py
b/tests/integration/test_block_meta.py
index d701ca09..508847b9 100644
--- a/tests/integration/test_block_meta.py
+++ b/tests/integration/test_block_meta.py
@@ -168,8 +168,7 @@ class StorageConfigBuilder:
def add_image(self, *, path, size, create=False, **kw):
if create:
- with open(path, "wb") as f:
- f.write(b"\0" * int(util.human2bytes(size)))
+ util.subp(['truncate', '-s', str(size), path])
action = self._add(type='image', path=path, size=size, **kw)
self.cur_image = action['id']
return action
--
https://code.launchpad.net/~curtin-dev/curtin/+git/curtin/+merge/442650
Your team curtin developers is subscribed to branch curtin:master.
--
Mailing list: https://launchpad.net/~curtin-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~curtin-dev
More help : https://help.launchpad.net/ListHelp