1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 12:24:32 +00:00

trace: fix data file trace name in warning

The warning refers to trace.bin, which is not the extension that we use
for it.  Instead, use the variable with the default trace
name (trace.dat) for the warning.
This commit is contained in:
Javi Merino 2015-08-28 15:52:43 +01:00
parent 25b9350fea
commit 227c39d95d

View File

@ -239,7 +239,7 @@ class TraceCmdInstrument(Instrument):
# To get the output of trace.dat, trace-cmd must be installed # To get the output of trace.dat, trace-cmd must be installed
# This is done host-side because the generated file is very large # This is done host-side because the generated file is very large
if not os.path.isfile(local_trace_file): if not os.path.isfile(local_trace_file):
self.logger.warning('Not generating trace.txt, as trace.bin does not exist.') self.logger.warning('Not generating trace.txt, as {} does not exist.'.format(OUTPUT_TRACE_FILE))
try: try:
command = 'trace-cmd report {} > {}'.format(local_trace_file, local_txt_trace_file) command = 'trace-cmd report {} > {}'.format(local_trace_file, local_txt_trace_file)
self.logger.debug(command) self.logger.debug(command)