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

Method _execute_test_suite

dpdk/dts/framework/test_suite.py:318–335  ·  view source on GitHub ↗

Execute all test cases scheduled to be executed in this suite.

(self)

Source from the content-addressed store, hash-verified

316 raise BlockingTestSuiteError(test_suite_name)
317
318 def _execute_test_suite(self) -> None:
319 """
320 Execute all test cases scheduled to be executed in this suite.
321 """
322 if self._func:
323 for test_case_method in self._get_functional_test_cases():
324 test_case_name = test_case_method.__name__
325 test_case_result = self._result.add_test_case(test_case_name)
326 all_attempts = SETTINGS.re_run + 1
327 attempt_nr = 1
328 self._run_test_case(test_case_method, test_case_result)
329 while not test_case_result and attempt_nr < all_attempts:
330 attempt_nr += 1
331 self._logger.info(
332 f"Re-running FAILED test case '{test_case_name}'. "
333 f"Attempt number {attempt_nr} out of {all_attempts}."
334 )
335 self._run_test_case(test_case_method, test_case_result)
336
337 def _get_functional_test_cases(self) -> list[MethodType]:
338 """

Callers 1

runMethod · 0.95

Calls 3

_run_test_caseMethod · 0.95
add_test_caseMethod · 0.80

Tested by

no test coverage detected