Add new methods to BuildPerfTest class for running a shell command and logging its output.
Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index d608061..230a7e7 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py @@ -112,6 +112,11 @@ class BuildPerfTest(object): """Actual test payload""" raise NotImplementedError + def log_cmd_output(self, cmd): + """Run a command and log it's output""" + with open(self.cmd_log, 'a') as fobj: + runCmd(cmd, stdout=fobj) + def measure_cmd_resources(self, cmd, name, legend): """Measure system resource usage of a command""" def str_time_to_timedelta(strtime): -- 2.6.6 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core