def _process_results(self): self.logger.info('Processing overall results') with self._signal_wrap('OVERALL_RESULTS_PROCESSING'): if instrumentation.check_failures(): self.context.run_result.non_iteration_errors = True self.result_manager.process_run_result(self.context.run_result, self.context)
def _initialize_run(self): self.context.runner = self self.context.run_info.start_time = datetime.utcnow() self._connect_to_device() self.logger.info('Initializing device') self.device.initialize(self.context) self.logger.info('Initializing workloads') for workload_spec in self.context.config.workload_specs: workload_spec.workload.initialize(self.context) props = self.device.get_properties(self.context) self.context.run_info.device_properties = props self.result_manager.initialize(self.context) self._send(signal.RUN_INIT) if instrumentation.check_failures(): raise InstrumentError('Detected failure(s) during instrumentation initialization.')