[oe-commits] [openembedded-core] 14/28: oeqa/selftest/case: Support bitbake memres mode in per build directory
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 20 09:44:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 11f83a0cf8fb0ffa3f00aeea06f479d7d73b3b31
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Wed Jun 28 15:37:39 2017 -0500
oeqa/selftest/case: Support bitbake memres mode in per build directory
If BBSERVER is set on the environment the bitbake is set to be used
as a memres, so starts an bitbake server per TestClass.
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
meta/lib/oeqa/selftest/case.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta/lib/oeqa/selftest/case.py b/meta/lib/oeqa/selftest/case.py
index c210324..cacd6be 100644
--- a/meta/lib/oeqa/selftest/case.py
+++ b/meta/lib/oeqa/selftest/case.py
@@ -98,6 +98,12 @@ class OESelftestTestCase(OETestCase):
cls.runCmd("git init; git add *; git commit -a -m 'initial'",
cwd=cls.testlayer_path)
+ if cls._use_own_builddir and 'BBSERVER' in os.environ:
+ env = os.environ.copy()
+ del env['BBSERVER']
+ result = cls.runCmd('bitbake --server-only -t xmlrpc -B localhost:-1',
+ env=env)
+
# XXX: sometimes meta-selftest isn't on bblayers at first backup
try:
cls.runCmd("bitbake-layers remove-layer %s" % cls.orig_testlayer_path)
@@ -120,6 +126,9 @@ class OESelftestTestCase(OETestCase):
@classmethod
def tearDownClass(cls):
+ if cls._use_own_builddir and 'BBSERVER' in os.environ:
+ cls.runCmd('bitbake --kill-server')
+
cls.remove_include()
cls.remove_inc_files()
super(OESelftestTestCase, cls).tearDownClass()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list