diff options
author | Lucian Musat <georgex.l.musat@intel.com> | 2014-06-27 17:32:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-03 17:41:17 +0100 |
commit | ae03111791f45036e7c24378b06b997f8c7cb0a7 (patch) | |
tree | 6a82a37ec4d6a0a9d61ea4eb1892df72887fd2a6 /meta/lib/oeqa/selftest/base.py | |
parent | 52a6d20519870103134166d91e22d21fd736195d (diff) | |
download | poky-ae03111791f45036e7c24378b06b997f8c7cb0a7.tar.gz |
Added testcase decorator to use in logging. Added class decorator LogResults that outputs test results in separate log file.
(From OE-Core rev: 7e2b73f1ccfe2968ef780fef2edfaa31c3dae853)
Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/base.py')
-rw-r--r-- | meta/lib/oeqa/selftest/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/base.py b/meta/lib/oeqa/selftest/base.py index fc880e9d26..80b9b4b312 100644 --- a/meta/lib/oeqa/selftest/base.py +++ b/meta/lib/oeqa/selftest/base.py | |||
@@ -15,7 +15,9 @@ import errno | |||
15 | 15 | ||
16 | import oeqa.utils.ftools as ftools | 16 | import oeqa.utils.ftools as ftools |
17 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_test_layer | 17 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_test_layer |
18 | from oeqa.utils.decorators import LogResults | ||
18 | 19 | ||
20 | @LogResults | ||
19 | class oeSelfTest(unittest.TestCase): | 21 | class oeSelfTest(unittest.TestCase): |
20 | 22 | ||
21 | log = logging.getLogger("selftest.base") | 23 | log = logging.getLogger("selftest.base") |