diff options
Diffstat (limited to 'meta')
-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): | |||
112 | """Actual test payload""" | 112 | """Actual test payload""" |
113 | raise NotImplementedError | 113 | raise NotImplementedError |
114 | 114 | ||
115 | def log_cmd_output(self, cmd): | ||
116 | """Run a command and log it's output""" | ||
117 | with open(self.cmd_log, 'a') as fobj: | ||
118 | runCmd(cmd, stdout=fobj) | ||
119 | |||
115 | def measure_cmd_resources(self, cmd, name, legend): | 120 | def measure_cmd_resources(self, cmd, name, legend): |
116 | """Measure system resource usage of a command""" | 121 | """Measure system resource usage of a command""" |
117 | def str_time_to_timedelta(strtime): | 122 | def str_time_to_timedelta(strtime): |