diff options
| author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2017-01-13 10:47:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:20 +0000 |
| commit | 58789be270c903bf75c1946a4c626b37a5bcdc72 (patch) | |
| tree | db84f05a6ab1fdeac5cdd1224558216e562f35d6 /meta/lib/oeqa/core | |
| parent | f8d7db1905902c048d22c86ecddd1be98419bbaf (diff) | |
| download | poky-58789be270c903bf75c1946a4c626b37a5bcdc72.tar.gz | |
testimage.bbclass: Add package install feature
This allows to use the package install feature with
the new OEQA framework.
[YOCTO #10234]
(From OE-Core rev: 077dc19445574457769eb4f231de97e8059cb75e)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core')
| -rw-r--r-- | meta/lib/oeqa/core/utils/test.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/lib/oeqa/core/utils/test.py b/meta/lib/oeqa/core/utils/test.py index 88d176552e..88d5d13981 100644 --- a/meta/lib/oeqa/core/utils/test.py +++ b/meta/lib/oeqa/core/utils/test.py | |||
| @@ -10,11 +10,13 @@ def getSuiteCases(suite): | |||
| 10 | Returns individual test from a test suite. | 10 | Returns individual test from a test suite. |
| 11 | """ | 11 | """ |
| 12 | tests = [] | 12 | tests = [] |
| 13 | for item in suite: | 13 | |
| 14 | if isinstance(item, unittest.suite.TestSuite): | 14 | if isinstance(suite, unittest.TestCase): |
| 15 | tests.append(suite) | ||
| 16 | elif isinstance(suite, unittest.suite.TestSuite): | ||
| 17 | for item in suite: | ||
| 15 | tests.extend(getSuiteCases(item)) | 18 | tests.extend(getSuiteCases(item)) |
| 16 | elif isinstance(item, unittest.TestCase): | 19 | |
| 17 | tests.append(item) | ||
| 18 | return tests | 20 | return tests |
| 19 | 21 | ||
| 20 | def getSuiteModules(suite): | 22 | def getSuiteModules(suite): |
