summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/tests
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-18 10:18:41 +0100
commitd9de34ce9906399ae9845d0434e2b2b1642bf46a (patch)
tree6b6ef677d1db920a93a71ab444a91efec39d9919 /meta/lib/oeqa/core/tests
parent4e4958cba2e083eac20e2770e04bfc7d56d9db42 (diff)
downloadpoky-d9de34ce9906399ae9845d0434e2b2b1642bf46a.tar.gz
oeqa/runner: Simplify code
There doesn't appear to be any reason we need this _results indirection any more so remove it. (From OE-Core rev: b618261811c48ff3b98eab1b340a8cd09ef183c6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/tests')
-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):
21 21
22 tc = self._testLoader(modules=self.modules) 22 tc = self._testLoader(modules=self.modules)
23 self.assertEqual(False, tc.runTests().wasSuccessful()) 23 self.assertEqual(False, tc.runTests().wasSuccessful())
24 for test, data in tc._results['errors']: 24 for test, data in tc.errors:
25 expect = False 25 expect = False
26 if expectedException in data: 26 if expectedException in data:
27 expect = True 27 expect = True
@@ -34,7 +34,7 @@ class TestData(TestBase):
34 34
35 tc = self._testLoader(d=d, modules=self.modules) 35 tc = self._testLoader(d=d, modules=self.modules)
36 self.assertEqual(False, tc.runTests().wasSuccessful()) 36 self.assertEqual(False, tc.runTests().wasSuccessful())
37 for test, data in tc._results['failures']: 37 for test, data in tc.failures:
38 expect = False 38 expect = False
39 if expectedError in data: 39 if expectedError in data:
40 expect = True 40 expect = True