summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/tests/test_data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-11 11:54:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-16 21:26:15 +0100
commitb618261811c48ff3b98eab1b340a8cd09ef183c6 (patch)
tree24f3fe70856d432f9c01fa3b51ef0590c67ed808 /meta/lib/oeqa/core/tests/test_data.py
parenta98ab5e560e73b6988512fbae5cefe9e42ceed53 (diff)
downloadopenembedded-core-contrib-b618261811c48ff3b98eab1b340a8cd09ef183c6.tar.gz
oeqa/runner: Simplify code
There doesn't appear to be any reason we need this _results indirection any more so remove it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/tests/test_data.py')
-rwxr-xr-xmeta/lib/oeqa/core/tests/test_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/tests/test_data.py b/meta/lib/oeqa/core/tests/test_data.py
index 320468cbe4..21b6c68b8a 100755
--- a/meta/lib/oeqa/core/tests/test_data.py
+++ b/meta/lib/oeqa/core/tests/test_data.py
@@ -21,7 +21,7 @@ class TestData(TestBase):
tc = self._testLoader(modules=self.modules)
self.assertEqual(False, tc.runTests().wasSuccessful())
- for test, data in tc._results['errors']:
+ for test, data in tc.errors:
expect = False
if expectedException in data:
expect = True
@@ -34,7 +34,7 @@ class TestData(TestBase):
tc = self._testLoader(d=d, modules=self.modules)
self.assertEqual(False, tc.runTests().wasSuccessful())
- for test, data in tc._results['failures']:
+ for test, data in tc.failures:
expect = False
if expectedError in data:
expect = True