mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
oeqa.buildperf: prevent a crash on unexpected success
(From OE-Core rev: af205d9a13d182a0b590426ba8c4e3dff7f3f02b) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
6a4debb732
commit
ef988b3d06
|
@ -137,7 +137,7 @@ class BuildPerfTestResult(unittest.TextTestResult):
|
|||
def addSuccess(self, test):
|
||||
"""Record results from successful tests"""
|
||||
super(BuildPerfTestResult, self).addSuccess(test)
|
||||
self.successes.append((test, None))
|
||||
self.successes.append(test)
|
||||
|
||||
def startTest(self, test):
|
||||
"""Pre-test hook"""
|
||||
|
@ -165,7 +165,10 @@ class BuildPerfTestResult(unittest.TextTestResult):
|
|||
'SKIPPED': self.skipped}
|
||||
for status, tests in result_map.items():
|
||||
for test in tests:
|
||||
yield (status, test)
|
||||
if isinstance(test, tuple):
|
||||
yield (status, test)
|
||||
else:
|
||||
yield (status, (test, None))
|
||||
|
||||
|
||||
def update_globalres_file(self, filename):
|
||||
|
|
Loading…
Reference in New Issue
Block a user