mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
oeqa/selftest/devtool: Add sync call to test teardown
Devtool tests are heavy on IO and if bitbake can't write out its caches, we see timeouts. Call "sync" around the tests to ensure the IO queue doesn't get too large, taking any IO hit here rather than in bitbake shutdown. (From OE-Core rev: ce265cf467f1c3e5ba2edbfbef2170df1a727a52) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -107,6 +107,13 @@ class DevtoolBase(OESelftestTestCase):
|
||||
'under the build directory')
|
||||
self.append_config(self.sstate_conf)
|
||||
|
||||
def tearDown(self):
|
||||
# devtools tests are heavy on IO and if bitbake can't write out its caches, we see timeouts.
|
||||
# call sync around the tests to ensure the IO queue doesn't get too large, taking any IO
|
||||
# hit here rather than in bitbake shutdown.
|
||||
super().tearDown()
|
||||
os.system("sync")
|
||||
|
||||
def _check_src_repo(self, repo_dir):
|
||||
"""Check srctree git repository"""
|
||||
self.assertTrue(os.path.isdir(os.path.join(repo_dir, '.git')),
|
||||
|
||||
Reference in New Issue
Block a user