buildman: Handle exceptions in threads gracefully
There have been at least a few cases where an exception has occurred in a
thread and resulted in buildman hanging: running out of disk space and
getting a unicode error.
Handle these by collecting a list of exceptions, printing them out and
reporting failure if any are found. Add a test for this.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- tools/buildman/builder.py 17 additions, 5 deletionstools/buildman/builder.py
- tools/buildman/builderthread.py 13 additions, 1 deletiontools/buildman/builderthread.py
- tools/buildman/control.py 11 additions, 5 deletionstools/buildman/control.py
- tools/buildman/func_test.py 15 additions, 0 deletionstools/buildman/func_test.py
Loading
Please register or sign in to comment