diff options
| -rwxr-xr-x | meta/lib/oeqa/core/tests/test_data.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/lib/oeqa/core/tests/test_data.py b/meta/lib/oeqa/core/tests/test_data.py index 50811bb381..ac74098b78 100755 --- a/meta/lib/oeqa/core/tests/test_data.py +++ b/meta/lib/oeqa/core/tests/test_data.py | |||
| @@ -22,8 +22,9 @@ class TestData(TestBase): | |||
| 22 | expectedException = "oeqa.core.exception.OEQAMissingVariable" | 22 | expectedException = "oeqa.core.exception.OEQAMissingVariable" |
| 23 | 23 | ||
| 24 | tc = self._testLoader(modules=self.modules) | 24 | tc = self._testLoader(modules=self.modules) |
| 25 | self.assertEqual(False, tc.runTests().wasSuccessful()) | 25 | results = tc.runTests() |
| 26 | for test, data in tc.errors: | 26 | self.assertFalse(results.wasSuccessful()) |
| 27 | for test, data in results.errors: | ||
| 27 | expect = False | 28 | expect = False |
| 28 | if expectedException in data: | 29 | if expectedException in data: |
| 29 | expect = True | 30 | expect = True |
| @@ -35,8 +36,9 @@ class TestData(TestBase): | |||
| 35 | d = {'IMAGE' : 'core-image-sato', 'ARCH' : 'arm'} | 36 | d = {'IMAGE' : 'core-image-sato', 'ARCH' : 'arm'} |
| 36 | 37 | ||
| 37 | tc = self._testLoader(d=d, modules=self.modules) | 38 | tc = self._testLoader(d=d, modules=self.modules) |
| 38 | self.assertEqual(False, tc.runTests().wasSuccessful()) | 39 | results = tc.runTests() |
| 39 | for test, data in tc.failures: | 40 | self.assertFalse(results.wasSuccessful()) |
| 41 | for test, data in results.failures: | ||
| 40 | expect = False | 42 | expect = False |
| 41 | if expectedError in data: | 43 | if expectedError in data: |
| 42 | expect = True | 44 | expect = True |
