mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
workloads/rt_app: Do not try to process output if none present.
If the workload is abnormally terminated and no output is collected do not attempt to process the output.
This commit is contained in:
parent
c67b917fd1
commit
4260139a7c
@ -156,6 +156,7 @@ class RtApp(Workload):
|
|||||||
self._deploy_rt_app_binary_if_necessary()
|
self._deploy_rt_app_binary_if_necessary()
|
||||||
|
|
||||||
def setup(self, context):
|
def setup(self, context):
|
||||||
|
self.output = None
|
||||||
self.log_basename = context.current_job.label
|
self.log_basename = context.current_job.label
|
||||||
self.host_json_config = self._load_json_config(context)
|
self.host_json_config = self._load_json_config(context)
|
||||||
self.config_file_on_target = self.target.path.join(self.target_working_directory,
|
self.config_file_on_target = self.target.path.join(self.target_working_directory,
|
||||||
@ -181,6 +182,8 @@ class RtApp(Workload):
|
|||||||
task_count=self.task_count,
|
task_count=self.task_count,
|
||||||
))
|
))
|
||||||
|
|
||||||
|
if not self.output:
|
||||||
|
return
|
||||||
outfile = os.path.join(context.output_directory, RAW_OUTPUT_FILENAME)
|
outfile = os.path.join(context.output_directory, RAW_OUTPUT_FILENAME)
|
||||||
with open(outfile, 'w') as wfh:
|
with open(outfile, 'w') as wfh:
|
||||||
wfh.write(self.output)
|
wfh.write(self.output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user