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

Function _run_build_target

dpdk/dts/framework/dts.py:119–150  ·  view source on GitHub ↗

Run the given build target.

(
    sut_node: SutNode,
    tg_node: TGNode,
    build_target: BuildTargetConfiguration,
    execution: ExecutionConfiguration,
    execution_result: ExecutionResult,
)

Source from the content-addressed store, hash-verified

117
118
119def _run_build_target(
120 sut_node: SutNode,
121 tg_node: TGNode,
122 build_target: BuildTargetConfiguration,
123 execution: ExecutionConfiguration,
124 execution_result: ExecutionResult,
125) -> None:
126 """
127 Run the given build target.
128 """
129 dts_logger.info(f"Running build target '{build_target.name}'.")
130 build_target_result = execution_result.add_build_target(build_target)
131
132 try:
133 sut_node.set_up_build_target(build_target)
134 result.dpdk_version = sut_node.dpdk_version
135 build_target_result.add_build_target_info(sut_node.get_build_target_info())
136 build_target_result.update_setup(Result.PASS)
137 except Exception as e:
138 dts_logger.exception("Build target setup failed.")
139 build_target_result.update_setup(Result.FAIL, e)
140
141 else:
142 _run_all_suites(sut_node, tg_node, execution, build_target_result)
143
144 finally:
145 try:
146 sut_node.tear_down_build_target()
147 build_target_result.update_teardown(Result.PASS)
148 except Exception as e:
149 dts_logger.exception("Build target teardown failed.")
150 build_target_result.update_teardown(Result.FAIL, e)
151
152
153def _run_all_suites(

Callers 1

_run_executionFunction · 0.85

Calls 8

_run_all_suitesFunction · 0.85
add_build_targetMethod · 0.80
set_up_build_targetMethod · 0.80
add_build_target_infoMethod · 0.80
get_build_target_infoMethod · 0.80
update_setupMethod · 0.80
update_teardownMethod · 0.80

Tested by

no test coverage detected