37
37
TEST_WORKER_COUNT = 10
38
38
39
39
40
- def test_vsock (uvm_plain_any , pci_enabled , bin_vsock_path , test_fc_session_root_path ):
40
+ def test_vsock (uvm_plain_any , bin_vsock_path , test_fc_session_root_path ):
41
41
"""
42
42
Test guest and host vsock initiated connections.
43
43
44
44
Check the module docstring for details on the setup.
45
45
"""
46
46
47
47
vm = uvm_plain_any
48
- vm .spawn (pci = pci_enabled )
48
+ vm .spawn ()
49
49
50
50
vm .basic_config ()
51
51
vm .add_net_iface ()
@@ -102,12 +102,12 @@ def negative_test_host_connections(vm, blob_path, blob_hash):
102
102
validate_fc_metrics (metrics )
103
103
104
104
105
- def test_vsock_epipe (uvm_plain , pci_enabled , bin_vsock_path , test_fc_session_root_path ):
105
+ def test_vsock_epipe (uvm_plain_any , bin_vsock_path , test_fc_session_root_path ):
106
106
"""
107
107
Vsock negative test to validate SIGPIPE/EPIPE handling.
108
108
"""
109
- vm = uvm_plain
110
- vm .spawn (pci = pci_enabled )
109
+ vm = uvm_plain_any
110
+ vm .spawn ()
111
111
vm .basic_config ()
112
112
vm .add_net_iface ()
113
113
vm .api .vsock .put (vsock_id = "vsock0" , guest_cid = 3 , uds_path = f"/{ VSOCK_UDS_PATH } " )
@@ -129,7 +129,7 @@ def test_vsock_epipe(uvm_plain, pci_enabled, bin_vsock_path, test_fc_session_roo
129
129
130
130
131
131
def test_vsock_transport_reset_h2g (
132
- uvm_plain , pci_enabled , microvm_factory , bin_vsock_path , test_fc_session_root_path
132
+ uvm_plain_any , microvm_factory , bin_vsock_path , test_fc_session_root_path
133
133
):
134
134
"""
135
135
Vsock transport reset test.
@@ -146,8 +146,8 @@ def test_vsock_transport_reset_h2g(
146
146
6. Close VM -> Load VM from Snapshot -> check that vsock
147
147
device is still working.
148
148
"""
149
- test_vm = uvm_plain
150
- test_vm .spawn (pci = pci_enabled )
149
+ test_vm = uvm_plain_any
150
+ test_vm .spawn ()
151
151
test_vm .basic_config (vcpu_count = 2 , mem_size_mib = 256 )
152
152
test_vm .add_net_iface ()
153
153
test_vm .api .vsock .put (vsock_id = "vsock0" , guest_cid = 3 , uds_path = f"/{ VSOCK_UDS_PATH } " )
@@ -215,12 +215,12 @@ def test_vsock_transport_reset_h2g(
215
215
validate_fc_metrics (metrics )
216
216
217
217
218
- def test_vsock_transport_reset_g2h (uvm_plain , pci_enabled , microvm_factory ):
218
+ def test_vsock_transport_reset_g2h (uvm_plain_any , microvm_factory ):
219
219
"""
220
220
Vsock transport reset test.
221
221
"""
222
- test_vm = uvm_plain
223
- test_vm .spawn (pci = pci_enabled )
222
+ test_vm = uvm_plain_any
223
+ test_vm .spawn ()
224
224
test_vm .basic_config (vcpu_count = 2 , mem_size_mib = 256 )
225
225
test_vm .add_net_iface ()
226
226
test_vm .api .vsock .put (vsock_id = "vsock0" , guest_cid = 3 , uds_path = f"/{ VSOCK_UDS_PATH } " )
0 commit comments