MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _fail_test_case_verify

Method _fail_test_case_verify

dpdk/dts/framework/test_suite.py:200–207  ·  view source on GitHub ↗
(self, failure_description: str)

Source from the content-addressed store, hash-verified

198 self._fail_test_case_verify(failure_description)
199
200 def _fail_test_case_verify(self, failure_description: str) -> None:
201 self._logger.debug("A test case failed, showing the last 10 commands executed on SUT:")
202 for command_res in self.sut_node.main_session.remote_session.history[-10:]:
203 self._logger.debug(command_res.command)
204 self._logger.debug("A test case failed, showing the last 10 commands executed on TG:")
205 for command_res in self.tg_node.main_session.remote_session.history[-10:]:
206 self._logger.debug(command_res.command)
207 raise TestCaseVerifyError(failure_description)
208
209 def verify_packets(self, expected_packet: Packet, received_packets: list[Packet]) -> None:
210 for received_packet in received_packets:

Callers 2

verifyMethod · 0.95
verify_packetsMethod · 0.95

Calls 1

TestCaseVerifyErrorClass · 0.85

Tested by

no test coverage detected