aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-04 12:54:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-06 10:27:48 +0000
commit34a2ef91e6172c9d63819f4d8005a382956d741a (patch)
tree8f0c1f2fee7919eee565aefb1a46aa39526f2aef
parente698ff1817e3536211f40af161c563d15e2ef3b5 (diff)
downloadbitbake-34a2ef91e6172c9d63819f4d8005a382956d741a.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xlib/bb/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py
index 732a31540..7dc953da6 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -448,7 +448,7 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
else:
logger.info("Reconnecting to bitbake server...")
if not os.path.exists(sockname):
- print("Previous bitbake instance shutting down?, waiting to retry...")
+ logger.info("Previous bitbake instance shutting down?, waiting to retry...")
i = 0
lock = None
# Wait for 5s or until we can get the lock