diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-05-26 15:37:41 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-02 13:36:14 +0100 |
commit | a4eef558c9933eb32413b61ff80a11b999951b40 (patch) | |
tree | 9ef0eb53a16d94db3e0213e13d760107eb9facc8 /meta/lib/oeqa/core/tests/common.py | |
parent | f9102ab1ede53c9c2e4b296566a58a398322d28c (diff) | |
download | poky-a4eef558c9933eb32413b61ff80a11b999951b40.tar.gz |
oeqa/core/tests: Add tests of OEQA Threaded mode
Add needed tests to validate the OEQA Threaded mode, the remaining
parts are tested by the OEQA without Threaded mode.
- test_loader.py: Add a test to validate rules when creating the
list of test suites.
- test_decorators.py: Add oetimeout test because the threaded mode
uses Timer instead of signal.
[YOCTO #11450]
(From OE-Core rev: fb9d91ca34c1b5d3e0034f5135e71f964fca5b82)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/tests/common.py')
-rw-r--r-- | meta/lib/oeqa/core/tests/common.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/tests/common.py b/meta/lib/oeqa/core/tests/common.py index 52b18a1c3e..1932323409 100644 --- a/meta/lib/oeqa/core/tests/common.py +++ b/meta/lib/oeqa/core/tests/common.py | |||
@@ -33,3 +33,13 @@ class TestBase(unittest.TestCase): | |||
33 | tc.loadTests(self.cases_path, modules=modules, tests=tests, | 33 | tc.loadTests(self.cases_path, modules=modules, tests=tests, |
34 | filters=filters) | 34 | filters=filters) |
35 | return tc | 35 | return tc |
36 | |||
37 | def _testLoaderThreaded(self, d={}, modules=[], | ||
38 | tests=[], filters={}): | ||
39 | from oeqa.core.threaded import OETestContextThreaded | ||
40 | |||
41 | tc = OETestContextThreaded(d, self.logger) | ||
42 | tc.loadTests(self.cases_path, modules=modules, tests=tests, | ||
43 | filters=filters) | ||
44 | |||
45 | return tc | ||