summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core
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-07-16 13:21:34 +0100
commit754cf58700514e111013c139efd64fcaea77c384 (patch)
tree9193ad08b96c0e032b78442edc0ea64d2b682e30 /meta/lib/oeqa/core
parente6f7c57b556cad467ff014f29bc9ceb26146a22c (diff)
downloadpoky-754cf58700514e111013c139efd64fcaea77c384.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) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core')
-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