Skip to content

Commit d1d154e

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 f2c7e70 commit d1d154e

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
@@ -271,7 +271,7 @@ def xva_export_import(vm: VM, compression: XVACompression, temp_large_dir: str,
271271
growpart_returncode = vm.ssh_with_result('growpart /dev/xvda 3').returncode
272272
assert growpart_returncode in [0, 1] # growpart returns 1 if the size is already the expected one
273273
vm.ssh('resize2fs /dev/xvda3')
274-
stream_size = volume_size // 2
274+
stream_size = min(volume_size // 2, 2 * GiB)
275275
else:
276276
stream_size = 500 * MiB
277277

0 commit comments

Comments
 (0)