diff options
-rw-r--r-- | meta/lib/oeqa/sdk/buildtools-cases/build.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/eSDK.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/sdk/buildtools-cases/build.py b/meta/lib/oeqa/sdk/buildtools-cases/build.py index 9c9a84bf8a..aee2e5a8c0 100644 --- a/meta/lib/oeqa/sdk/buildtools-cases/build.py +++ b/meta/lib/oeqa/sdk/buildtools-cases/build.py | |||
@@ -25,6 +25,6 @@ class BuildTests(OESDKTestCase): | |||
25 | self._run('. %s/oe-init-build-env %s && bitbake virtual/libc' % (corebase, testdir)) | 25 | self._run('. %s/oe-init-build-env %s && bitbake virtual/libc' % (corebase, testdir)) |
26 | finally: | 26 | finally: |
27 | delay = 10 | 27 | delay = 10 |
28 | while delay and os.path.exists(testdir + "/bitbake.lock"): | 28 | while delay and (os.path.exists(testdir + "/bitbake.lock") or os.path.exists(testdir + "/cache/hashserv.db-wal")): |
29 | time.sleep(1) | 29 | time.sleep(1) |
30 | delay = delay - 1 | 30 | delay = delay - 1 |
diff --git a/meta/lib/oeqa/selftest/cases/eSDK.py b/meta/lib/oeqa/selftest/cases/eSDK.py index 862849af35..d0c402ba8a 100644 --- a/meta/lib/oeqa/selftest/cases/eSDK.py +++ b/meta/lib/oeqa/selftest/cases/eSDK.py | |||
@@ -100,7 +100,7 @@ SSTATE_MIRRORS = "file://.* file://%s/PATH" | |||
100 | @classmethod | 100 | @classmethod |
101 | def tearDownClass(cls): | 101 | def tearDownClass(cls): |
102 | for i in range(0, 10): | 102 | for i in range(0, 10): |
103 | if os.path.exists(os.path.join(cls.tmpdir_eSDKQA, 'bitbake.lock')): | 103 | if os.path.exists(os.path.join(cls.tmpdir_eSDKQA, 'bitbake.lock')) or os.path.exists(os.path.join(cls.tmpdir_eSDKQA, 'cache/hashserv.db-wal')): |
104 | time.sleep(1) | 104 | time.sleep(1) |
105 | else: | 105 | else: |
106 | break | 106 | break |
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 1659926975..78c7a467e2 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -39,7 +39,7 @@ class NonConcurrentTestSuite(unittest.TestSuite): | |||
39 | 39 | ||
40 | def removebuilddir(d): | 40 | def removebuilddir(d): |
41 | delay = 5 | 41 | delay = 5 |
42 | while delay and os.path.exists(d + "/bitbake.lock"): | 42 | while delay and (os.path.exists(d + "/bitbake.lock") or os.path.exists(d + "/cache/hashserv.db-wal")): |
43 | time.sleep(1) | 43 | time.sleep(1) |
44 | delay = delay - 1 | 44 | delay = delay - 1 |
45 | # Deleting these directories takes a lot of time, use autobuilder | 45 | # Deleting these directories takes a lot of time, use autobuilder |