mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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>
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user