[oe-commits] [openembedded-core] branch master-next updated: oeqa/concurrencytest: Optimise for autobuilder/clobberdir
git at git.openembedded.org
git at git.openembedded.org
Thu Dec 5 10:57:04 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
The following commit(s) were added to refs/heads/master-next by this push:
new c4f9932 oeqa/concurrencytest: Optimise for autobuilder/clobberdir
c4f9932 is described below
commit c4f99320143e178886537ed7ac669915ae1d5686
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Dec 5 10:56:42 2019 +0000
oeqa/concurrencytest: Optimise for autobuilder/clobberdir
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oeqa/core/utils/concurrencytest.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py
index 0f7b3dc..6f566d9 100644
--- a/meta/lib/oeqa/core/utils/concurrencytest.py
+++ b/meta/lib/oeqa/core/utils/concurrencytest.py
@@ -221,6 +221,15 @@ def removebuilddir(d):
while delay and os.path.exists(d + "/bitbake.lock"):
time.sleep(1)
delay = delay - 1
+ # Deleting these directories takes a lot of time, use autobuilder
+ # clobberdir if its available
+ clobber = os.path.expanduser("~/yocto-autobuilder-helper/janitor/clobberdir")
+ if os.path.exists(clobberdir):
+ try:
+ subprocess.check_call([clobber, d])
+ return
+ except subprocess.CalledProcessError:
+ pass
bb.utils.prunedir(d, ionice=True)
def fork_for_tests(concurrency_num, suite):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list