Skip to content

Commit 77b0a91

Browse files
committed
libbtrfsutil: python: increase test image size to 4GiB
Some of the subvolume tests fail with ENOSPC with the image size 1G. Change it to 4G, as 2G is still not enough. Also reset the image completely before truncating it to the size so there are no stale data. [ci skip] Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 4df4748 commit 77b0a91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libbtrfsutil/python/tests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def mount_btrfs(self):
6565
mountpoint = tempfile.mkdtemp()
6666
try:
6767
with tempfile.NamedTemporaryFile(delete=False) as f:
68-
os.truncate(f.fileno(), 1024 * 1024 * 1024)
68+
os.truncate(f.fileno(), 0)
69+
os.truncate(f.fileno(), 4 * 1024 * 1024 * 1024)
6970
image = f.name
7071
except Exception as e:
7172
os.rmdir(mountpoint)

0 commit comments

Comments
 (0)