diff options
Diffstat (limited to 'meta/lib/oeqa/buildperf')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index d608061ec0..230a7e7925 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): |