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)
| 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 | """ |
no test coverage detected