summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-01 14:05:16 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-05 12:37:02 (GMT)
commitd8d5199e6652b7a4ffd5ae47f4165add4d19d268 (patch)
tree43b850f8b121cd8ebe3e9adeac64163c5c1a25f1 /meta/lib/oe/utils.py
parentba89e87d8ec28e20d75d28b1bb7a240593733c8b (diff)
downloadpoky-d8d5199e6652b7a4ffd5ae47f4165add4d19d268.tar.gz
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. (From OE-Core rev: 521dd3d00979a27b6932e58d5497de68abac26e1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r--meta/lib/oe/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index d05f517..8a584d6 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):
318 for p in launched: 318 for p in launched:
319 p.join() 319 p.join()
320 if errors: 320 if errors:
321 msg = ""
321 for (e, tb) in errors: 322 for (e, tb) in errors:
322 bb.error(str(tb)) 323 msg = msg + str(e) + ": " + str(tb) + "\n"
323 bb.fatal("Fatal errors occurred in subprocesses, tracebacks printed above") 324 bb.fatal("Fatal errors occurred in subprocesses:\n%s" % msg)
324 return results 325 return results
325 326
326def squashspaces(string): 327def squashspaces(string):