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

Method process

dpdk/dts/framework/test_result.py:295–313  ·  view source on GitHub ↗

Process the data after a DTS run. The data is added to nested objects during runtime and this parent object is not updated at that time. This requires us to process the nested data after it's all been gathered. The processing gathers all errors and the resul

(self)

Source from the content-addressed store, hash-verified

293 self._errors.append(error)
294
295 def process(self) -> None:
296 """
297 Process the data after a DTS run.
298 The data is added to nested objects during runtime and this parent object
299 is not updated at that time. This requires us to process the nested data
300 after it's all been gathered.
301
302 The processing gathers all errors and the result statistics of test cases.
303 """
304 self._errors += self.get_errors()
305 if self._errors and self._logger:
306 self._logger.debug("Summary of errors:")
307 for error in self._errors:
308 self._logger.debug(repr(error))
309
310 self._stats_result = Statistics(self.dpdk_version)
311 self.add_stats(self._stats_result)
312 with open(self._stats_filename, "w+") as stats_file:
313 stats_file.write(str(self._stats_result))
314
315 def get_return_code(self) -> int:
316 """

Callers 12

rte_ipsec_pkt_processFunction · 0.80
__rte_node_processFunction · 0.80
fm10k_mbx_enqueue_txFunction · 0.80
fm10k_mbx_disconnectFunction · 0.80
fm10k_sm_mbx_disconnectFunction · 0.80
_exit_dtsFunction · 0.80

Calls 4

StatisticsClass · 0.85
get_errorsMethod · 0.80
add_statsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected