From c11cc7d0d282289c357c5347caa87844495ff5b5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Mon, 18 Jan 2016 11:53:06 +0000 Subject: [PATCH] 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. --- wlauto/instrumentation/trace_cmd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/instrumentation/trace_cmd/__init__.py b/wlauto/instrumentation/trace_cmd/__init__.py index d417bd00..6bebde03 100644 --- a/wlauto/instrumentation/trace_cmd/__init__.py +++ b/wlauto/instrumentation/trace_cmd/__init__.py @@ -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':