summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-11 11:03:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-16 14:31:27 +0000
commit521d02e6f51efe70500120e304866f7451894358 (patch)
tree9ee8829c894bb28d6d4599e3a553541220caad7c /meta
parentfa12ad627b49290c1a03f089983093ebcdef000b (diff)
downloadpoky-521d02e6f51efe70500120e304866f7451894358.tar.gz
oeqa/core/runner: Improve test case comparision
We can directly compare the test case IDs rather than representations, then if we're using subunit to split the tests, the comparisions still work as intended. (From OE-Core rev: 72e5f46f75454ba4c445c65c1cbc616a9e72fc6e) (From OE-Core rev: 4c53aac5315f9d0a0ed95cbeb48b7704e274e3a9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/core/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/runner.py b/meta/lib/oeqa/core/runner.py
index 13cdf5ba52..16345fab2e 100644
--- a/meta/lib/oeqa/core/runner.py
+++ b/meta/lib/oeqa/core/runner.py
@@ -88,10 +88,10 @@ class OETestResult(_TestResult):
88 break 88 break
89 scase_str = scase.test_id 89 scase_str = scase.test_id
90 else: 90 else:
91 if case == scase: 91 if case.id() == scase.id():
92 found = True 92 found = True
93 break 93 break
94 scase_str = str(scase) 94 scase_str = str(scase.id())
95 95
96 # When fails at module or class level the class name is passed as string 96 # When fails at module or class level the class name is passed as string
97 # so figure out to see if match 97 # so figure out to see if match