File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,11 +104,22 @@ class SriovValidation(TestSuite):
104104 requirement = simple_requirement(network_interface = Sriov()),
105105 )
106106 def verify_sriov_basic (self , node : Node, log : Logger) -> None :
107+ # --- Arrange ---
107108 lspci = node.tools[Lspci]
109+
110+ # --- Act ---
111+ # Minimal action: Capture the current hardware state
108112 log.info(" Scanning PCI bus for Virtual Functions..." )
109113 vf_slots = lspci.get_device_names_by_type(DEVICE_TYPE_SRIOV , force_run = True )
110- assert vf_slots, " No SR-IOV VF devices found via lspci."
114+
115+ # --- Assert ---
116+ assert vf_slots, " No SR-IOV VF devices found via lspci. Verify SR-IOV is enabled."
117+ log.info(" Successfully validated SR-IOV Virtual Function presence." )
111118
112119 def after_case (self , log : Logger, ** kwargs : Any) -> None :
120+ """
121+ Cleanup or post-test telemetry can be added here.
122+ """
113123 pass
124+
114125```
You can’t perform that action at this time.
0 commit comments