]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/core/runner: Improve test case comparision
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Jul 2018 11:03:31 +0000 (11:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2018 10:40:03 +0000 (10:40 +0000)
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>
meta/lib/oeqa/core/runner.py

index 13cdf5ba52349e1fdcc0a9cf802cf9a634e02454..16345fab2ec0b241ab22dfe8be8178d44d41b60e 100644 (file)
@@ -88,10 +88,10 @@ class OETestResult(_TestResult):
                     break
                 scase_str = scase.test_id
             else:
-                if case == scase:
+                if case.id() == scase.id():
                     found = True
                     break
-                scase_str = str(scase)
+                scase_str = str(scase.id())
 
             # When fails at module or class level the class name is passed as string
             # so figure out to see if match