diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-04 12:54:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-06 10:27:59 +0000 |
commit | 6b504019d6f3a19610594e65810ac245d8fcb4be (patch) | |
tree | 03397f59b1e7b4a4e411e996feebba4c4ab9074f /bitbake/lib | |
parent | f6f17e974a8e779ad107b661d9d2aee3184e7524 (diff) | |
download | poky-6b504019d6f3a19610594e65810ac245d8fcb4be.tar.gz |
bitbake: main: Don't use print() directly, use logger
Avoid failures like:
2018-12-04 03:30:56,033 - oe-selftest - INFO - ======================================================================
2018-12-04 03:30:56,033 - oe-selftest - INFO - FAIL: pkgdata.OePkgdataUtilTests.test_find_path (subunit.RemotedTestCase)
2018-12-04 03:30:56,033 - oe-selftest - INFO - ----------------------------------------------------------------------
2018-12-04 03:30:56,033 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
[...]
AssertionError: 'Previous bitbake instance shutting down?,[77 chars]xist' != 'ERROR: Unable to find any package produci[14 chars]xist'
- Previous bitbake instance shutting down?, waiting to retry...
ERROR: Unable to find any package producing path /not/exist
We need to use the logger so output is correctly handled in such cases.
(Bitbake rev: 1711a17dfe3980af96d713da6926e8aaa4545453)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-x | bitbake/lib/bb/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 732a315404..7dc953da66 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -448,7 +448,7 @@ def setup_bitbake(configParams, configuration, extrafeatures=None): | |||
448 | else: | 448 | else: |
449 | logger.info("Reconnecting to bitbake server...") | 449 | logger.info("Reconnecting to bitbake server...") |
450 | if not os.path.exists(sockname): | 450 | if not os.path.exists(sockname): |
451 | print("Previous bitbake instance shutting down?, waiting to retry...") | 451 | logger.info("Previous bitbake instance shutting down?, waiting to retry...") |
452 | i = 0 | 452 | i = 0 |
453 | lock = None | 453 | lock = None |
454 | # Wait for 5s or until we can get the lock | 454 | # Wait for 5s or until we can get the lock |