diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-11 11:03:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-13 16:34:30 +0100 |
commit | 72e5f46f75454ba4c445c65c1cbc616a9e72fc6e (patch) | |
tree | 880a45a453754efb6fcb146ce5d74e49e6ebcdac /meta/lib/oeqa/core | |
parent | 22886cf6f37d9a5c6ff90e10e0c17ed7f6321305 (diff) | |
download | openembedded-core-72e5f46f75454ba4c445c65c1cbc616a9e72fc6e.tar.gz openembedded-core-72e5f46f75454ba4c445c65c1cbc616a9e72fc6e.tar.bz2 openembedded-core-72e5f46f75454ba4c445c65c1cbc616a9e72fc6e.zip |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core')
-rw-r--r-- | meta/lib/oeqa/core/runner.py | 4 |
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): 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 |