Skip to content

Commit 03dabf3

Browse files
committed
storage: skip zfsvol large VDI tests due to known performance issue
Skip test_xva_export_import and test_vdi_export_import when VDI size > 20 GiB, as performance issues make these tests too slow on large volumes. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 1d07ff9 commit 03dabf3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/storage/zfsvol/test_zfsvol_sr.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from lib import config
88
from lib.commands import SSHCommandFailed
9-
from lib.common import Defer, KiB, MiB, vm_image, wait_for
9+
from lib.common import Defer, GiB, KiB, MiB, vm_image, wait_for
1010
from lib.host import Host
1111
from lib.sr import SR
1212
from lib.vdi import VDI
@@ -96,11 +96,15 @@ def test_invalid_vdi_size(self, zfsvol_sr: SR, image_format: ImageFormat):
9696
def test_xva_export_import(
9797
self, vm_on_zfsvol_sr: VM, compression: XVACompression, temp_large_dir: str, defer: Defer
9898
):
99+
if config.volume_size > 20 * GiB:
100+
pytest.skip("Skipping large VDI test (known performance issue)")
99101
xva_export_import(vm_on_zfsvol_sr, compression, temp_large_dir, defer)
100102

101103
@pytest.mark.small_vm
102104
def test_vdi_export_import(self, storage_test_vm: VM, zfsvol_sr: SR, image_format: ImageFormat, temp_large_dir: str,
103105
defer: Defer):
106+
if config.volume_size > 20 * GiB:
107+
pytest.skip("Skipping large VDI test (known performance issue)")
104108
vm = storage_test_vm
105109
sr = zfsvol_sr
106110
vdi_export_import(vm, sr, image_format, temp_large_dir, defer)

0 commit comments

Comments
 (0)