diff options
| -rw-r--r-- | meta/lib/oeqa/sdk/buildtools-cases/build.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/buildtools-cases/build.py b/meta/lib/oeqa/sdk/buildtools-cases/build.py index 5a17ab98c6..9c9a84bf8a 100644 --- a/meta/lib/oeqa/sdk/buildtools-cases/build.py +++ b/meta/lib/oeqa/sdk/buildtools-cases/build.py | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | import os, tempfile | 5 | import os, tempfile |
| 6 | import time | ||
| 6 | from oeqa.sdk.case import OESDKTestCase | 7 | from oeqa.sdk.case import OESDKTestCase |
| 7 | from oeqa.utils.subprocesstweak import errors_have_output | 8 | from oeqa.utils.subprocesstweak import errors_have_output |
| 8 | errors_have_output() | 9 | errors_have_output() |
| @@ -20,4 +21,10 @@ class BuildTests(OESDKTestCase): | |||
| 20 | conf.write('\n') | 21 | conf.write('\n') |
| 21 | conf.write('DL_DIR = "%s"\n' % self.td['DL_DIR']) | 22 | conf.write('DL_DIR = "%s"\n' % self.td['DL_DIR']) |
| 22 | 23 | ||
| 23 | self._run('. %s/oe-init-build-env %s && bitbake virtual/libc' % (corebase, testdir)) | 24 | try: |
| 25 | self._run('. %s/oe-init-build-env %s && bitbake virtual/libc' % (corebase, testdir)) | ||
| 26 | finally: | ||
| 27 | delay = 10 | ||
| 28 | while delay and os.path.exists(testdir + "/bitbake.lock"): | ||
| 29 | time.sleep(1) | ||
| 30 | delay = delay - 1 | ||
