From: Markus Lehtonen Date: Fri, 19 Aug 2016 13:01:34 +0000 (+0300) Subject: oeqa.buildperf: fix crash when creating globalres.log X-Git-Tag: yocto-4.0~20152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bdb7b2e512b2f160360e95ed5b2be3871ec0b4b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa.buildperf: fix crash when creating globalres.log Fix a bug that was introduced when converting to unittest framework. Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index c1dc86e5dbe..30b8e475562 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py @@ -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]