1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

instruments/trace_cmd: Fix reporting on target

If reporting on the target the extracted trace data file was not
defined, now locate the file correctly.
This commit is contained in:
Marc Bonnici 2018-07-23 17:34:59 +01:00
parent 8464c32808
commit d007b283df

View File

@ -206,8 +206,8 @@ class TraceCmdInstrument(Instrument):
self.collector.get_trace(outfile)
context.add_artifact('trace-cmd-bin', outfile, 'data')
if self.report:
textfile = os.path.join(context.output_directory, 'trace.txt')
if not self.report_on_target:
textfile = os.path.join(context.output_directory, 'trace.txt')
self.collector.report(outfile, textfile)
context.add_artifact('trace-cmd-txt', textfile, 'export')