summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-19 13:21:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-19 16:50:47 +0100
commitd41e7018be56902b7a1be4590e468cd15e02a3b5 (patch)
treebd1caf9a5be1b7074621b3308e5c6b4790537a91
parent1b727dd7295a7a7fe17800f8038242efbf7fe2b7 (diff)
downloadopenembedded-core-contrib-d41e7018be56902b7a1be4590e468cd15e02a3b5.tar.gz
openembedded-core-contrib-d41e7018be56902b7a1be4590e468cd15e02a3b5.tar.bz2
openembedded-core-contrib-d41e7018be56902b7a1be4590e468cd15e02a3b5.zip
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(). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/utils/concurrencytest.py2
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):
while delay and os.path.exists(d + "/bitbake.lock"):
time.sleep(1)
delay = delay - 1
- bb.utils.prunedir(d)
+ bb.utils.prunedir(d, ionice=True)
def fork_for_tests(concurrency_num, suite):
result = []