Skip to content

Commit 57b0340

Browse files
committed
xva: cap the data size for faster tests on large volumes
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 0b81107 commit 57b0340

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/storage/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def xva_export_import(vm: VM, compression: XVACompression, temp_large_dir: str,
268268
growpart_returncode = vm.ssh_with_result('growpart /dev/xvda 3').returncode
269269
assert growpart_returncode in [0, 1] # growpart returns 1 if the size is already the expected one
270270
vm.ssh('resize2fs /dev/xvda3')
271-
stream_size = volume_size // 2
271+
stream_size = min(volume_size // 2, 2 * GiB)
272272
else:
273273
stream_size = 500 * MiB
274274

0 commit comments

Comments
 (0)