Fixes to oe-build-perf-test
cover Fixes to oe-build-perf-test
Two patches to fix issues introduced in the previous conversion to Python unittest framework.
The following changes since commit 5dca6cc2fcdb2799c19b1697f0647a16ce296290:
systemd-compat-units: Only enable for systemd in DISTRO_FEATURES (2016-08-18 16:52:02 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib marquiz/buildperf/unittest
http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/buildperf/unittest
Markus Lehtonen (2):
oe-build-perf-test: align log message format with testrunner output oeqa.buildperf: fix crash when creating globalres.log
meta/lib/oeqa/buildperf/base.py | 2 +- scripts/oe-build-perf-test | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.6.6
PATCH 1/2 oe-build-perf-test: align log message format with testrunner output
The previous attempt on this was a bit erroneous, dropping time stamps completely although only the timestamp format should've been changed.
--- scripts/oe-build-perf-test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
scripts/oe-build-perf-test +4 -2
@@ -34,7 +34,9 @@ from oeqa.utils.commands import runCmd # Set-up logging -logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') +LOG_FORMAT = '[%(asctime)s] %(levelname)s: %(message)s' +logging.basicConfig(level=logging.INFO, format=LOG_FORMAT, + datefmt='%Y-%m-%d %H:%M:%S') log = logging.getLogger()
@@ -75,7 +77,7 @@ def setup_file_logging(log_file): log_dir = os.path.dirname(log_file) if not os.path.exists(log_dir): os.makedirs(log_dir) - formatter = logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s') + formatter = logging.Formatter(LOG_FORMAT) handler = logging.FileHandler(log_file) handler.setFormatter(formatter) log.addHandler(handler)
Signature · 1 line
2.6.6
PATCH 2/2 oeqa.buildperf: fix crash when creating globalres.log
In reply to Markus LehtonenFix a bug that was introduced when converting to unittest framework.
--- meta/lib/oeqa/buildperf/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/buildperf/base.py +1 -1
@@ -173,7 +173,7 @@ class BuildPerfTestResult(unittest.TextTestResult): git_tag_rev = self.git_revision values = ['0'] * 12 - for status, test in self.all_results(): + for status, (test, msg) in self.all_results(): if status not in ['SUCCESS', 'FAILURE', 'EXP_SUCCESS']: continue (t_ind, t_len), (s_ind, s_len) = gr_map[test.name]
Signature · 1 line
2.6.6