@@ -140,17 +140,17 @@ def test_invalid_vdi_size(self, nfs_sr: SR, image_format: ImageFormat):
140140 @pytest .mark .usefixtures ('vm_ref' )
141141 @pytest .mark .parametrize ('dispatch_nfs' , ['vm_on_nfs_sr' , 'vm_on_nfs4_sr' ], indirect = True )
142142 @pytest .mark .parametrize ("compression" , ["none" , "gzip" , "zstd" ])
143- def test_xva_export_import (self , dispatch_nfs : VM , compression : XVACompression , temp_large_dir : str , defer : Defer ) \
144- -> None :
145- if "NFS4" in dispatch_nfs .vdis [0 ].sr .get_name_label () and config .volume_size > 20 * GiB :
143+ def test_xva_export_import (self , dispatch_nfs : VM , compression : XVACompression , temp_large_dir : str ,
144+ defer : Defer ) -> None :
145+ if "NFS4" in dispatch_nfs .vdis [0 ].sr .get_name_label () and config .write_volume_cap > 20 * GiB :
146146 pytest .skip ("Skipping NFSv4 large VDI test (known performance issue)" )
147147 xva_export_import (dispatch_nfs , compression , temp_large_dir , defer )
148148
149149 @pytest .mark .small_vm
150150 @pytest .mark .parametrize ('dispatch_nfs' , ['nfs_sr' , 'nfs4_sr' ], indirect = True )
151151 def test_vdi_export_import (self , storage_test_vm : VM , dispatch_nfs : SR , image_format : ImageFormat ,
152152 temp_large_dir : str , defer : Defer ) -> None :
153- if "NFS4" in dispatch_nfs .get_name_label () and config .volume_size > 20 * GiB :
153+ if "NFS4" in dispatch_nfs .get_name_label () and config .write_volume_cap > 20 * GiB :
154154 pytest .skip ("Skipping NFSv4 large VDI test (known performance issue)" )
155155 vdi_export_import (storage_test_vm , dispatch_nfs , image_format , temp_large_dir , defer )
156156
0 commit comments