From d007b283dfa2f918ff990c431317de536048642c Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 23 Jul 2018 17:34:59 +0100 Subject: [PATCH] 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. --- wa/instruments/trace_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wa/instruments/trace_cmd.py b/wa/instruments/trace_cmd.py index 4a2faf2a..41eb9d32 100644 --- a/wa/instruments/trace_cmd.py +++ b/wa/instruments/trace_cmd.py @@ -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')