[oe-commits] [openembedded-core] 01/06: lib/oe/utils: Improve multiprocess_lauch exception handling
git at git.openembedded.org
git at git.openembedded.org
Sat Dec 1 23:50:02 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit efdb5b9e5707d62eaf34d930604a6e8a7ca70be5
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sat Dec 1 14:05:16 2018 +0000
lib/oe/utils: Improve multiprocess_lauch exception handling
We've seen a cryptic:
"ERROR: Fatal errors occurred in subprocesses, tracebacks printed above"
message from oe-selftest with no other traceback information. Improve the
traceback logging to try and give a better indication of any errors that is
ocurring.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oe/utils.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index d05f517..5fe30df 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -318,9 +318,10 @@ def multiprocess_launch(target, items, d, extraargs=None):
for p in launched:
p.join()
if errors:
+ msg = ""
for (e, tb) in errors:
- bb.error(str(tb))
- bb.fatal("Fatal errors occurred in subprocesses, tracebacks printed above")
+ msg = msg + str(e) + ": " + str(tb) + "\n"
+ bb.fatal("Fatal errors occurred in subprocesses: %s" % msg)
return results
def squashspaces(string):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list