Skip to content

Commit 39f21dc

Browse files
committed
storage: cap XVA test data size for faster tests on large volumes
Limit the data written during XVA export/import tests to 2 GiB maximum, allowing tests to complete quickly regardless of the volume size. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 4ead210 commit 39f21dc

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)