1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

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>
This commit is contained in:
Richard Purdie
2018-07-11 11:03:31 +00:00
parent e6f7c57b55
commit 754cf58700
+2 -2
View File
@@ -88,10 +88,10 @@ class OETestResult(_TestResult):
break break
scase_str = scase.test_id scase_str = scase.test_id
else: else:
if case == scase: if case.id() == scase.id():
found = True found = True
break break
scase_str = str(scase) scase_str = str(scase.id())
# When fails at module or class level the class name is passed as string # When fails at module or class level the class name is passed as string
# so figure out to see if match # so figure out to see if match