mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
trace-cmd: do not error on missing host-side trace-cmd when report_on_target is set
When report_on_target option is set, binary trace will be "reported" into a text version on the target device. This removes the need for trace-cmd to be installed on the host, in which case that should not be reported as an error.
This commit is contained in:
parent
89f1e7b6e5
commit
c11cc7d0d2
@ -268,7 +268,7 @@ class TraceCmdInstrument(Instrument):
|
||||
pass
|
||||
|
||||
def validate(self):
|
||||
if self.report and os.system('which trace-cmd > /dev/null'):
|
||||
if self.report and not self.report_on_target and os.system('which trace-cmd > /dev/null'):
|
||||
raise InstrumentError('trace-cmd is not in PATH; is it installed?')
|
||||
if self.buffer_size:
|
||||
if self.mode == 'record':
|
||||
|
Loading…
x
Reference in New Issue
Block a user