Skip to content

Commit 1c7e981

Browse files
committed
add some comment for lisa test writer
1 parent d21ecca commit 1c7e981

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/prompts/lisa_test_writer.prompt.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)