diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-19 13:21:26 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-19 20:30:35 +0100 |
commit | e9f859106c8a53d9711ac27f337f1ebb4564b6b7 (patch) | |
tree | fb33f6f89b083282d4621f8e55e488cfc650dfeb /meta/lib | |
parent | 9daa97bea87a33f1a890378e1686bcec779cad80 (diff) | |
download | poky-e9f859106c8a53d9711ac27f337f1ebb4564b6b7.tar.gz |
oeqa/concurrenttest: Use ionice to delete build directories
Autobuilder type infrastructure can benefit from deletion of certain files as
background IO due to the way Linux filesystem priority works.
We have problems where build directories as part of oe-selftest being
delete starves the running tasks of IO to the point builds take much
longer to compelte.
Having this option of running the deletion at "idle" helps a lot with
that. Use the new option added to bb.utils.prunedir().
(From OE-Core rev: d41e7018be56902b7a1be4590e468cd15e02a3b5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/core/utils/concurrencytest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py index fa6fa34b0e..6293cf94ec 100644 --- a/meta/lib/oeqa/core/utils/concurrencytest.py +++ b/meta/lib/oeqa/core/utils/concurrencytest.py | |||
@@ -216,7 +216,7 @@ def removebuilddir(d): | |||
216 | while delay and os.path.exists(d + "/bitbake.lock"): | 216 | while delay and os.path.exists(d + "/bitbake.lock"): |
217 | time.sleep(1) | 217 | time.sleep(1) |
218 | delay = delay - 1 | 218 | delay = delay - 1 |
219 | bb.utils.prunedir(d) | 219 | bb.utils.prunedir(d, ionice=True) |
220 | 220 | ||
221 | def fork_for_tests(concurrency_num, suite): | 221 | def fork_for_tests(concurrency_num, suite): |
222 | result = [] | 222 | result = [] |