Skip to content

Commit 0e16716

Browse files
r-daileyLiliDeng
authored andcommitted
Updated Interrupt inspector and SRIOV test case
1 parent 62e7378 commit 0e16716

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lisa/tools/interrupt_inspector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def get_interrupt_data(self) -> List[Interrupt]:
156156
# cpu2:timer 4297 6
157157
# Total 13950 25
158158
# The columns are in order: IRQ name, IRQ type, IRQ count, IRQ rate.
159-
result = self.run()
159+
result = self.run(force_run=True)
160160
mappings = result.stdout.splitlines(keepends=False)[1:-1]
161161
assert mappings
162162
interrupts = []

microsoft/testsuites/network/sriov.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,9 +852,15 @@ def verify_sriov_interrupts_change(self, environment: Environment) -> None:
852852
client_nic_info.pci_slot
853853
)
854854
)
855-
assert_that(len(final_pci_interrupts_by_cpus)).described_as(
856-
"final cpu count of interrupts should be equal to cpu count"
857-
).is_equal_to(client_cpu_count)
855+
if isinstance(client_node.os, BSD):
856+
assert_that(len(final_pci_interrupts_by_cpus)).described_as(
857+
"initial cpu count of interrupts should be equal to cpu count"
858+
" plus one to account for control queue"
859+
).is_equal_to(client_cpu_count + 1)
860+
else:
861+
assert_that(len(final_pci_interrupts_by_cpus)).described_as(
862+
"initial cpu count of interrupts should be equal to cpu count"
863+
).is_equal_to(client_cpu_count)
858864
unused_cpu = 0
859865
for (
860866
cpu,

0 commit comments

Comments
 (0)