diff options
author | Mark Hatle <mark.hatle@kernel.crashing.org> | 2020-09-02 15:10:22 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-03 12:24:10 +0100 |
commit | 3a2503c785a5cd9dca0dc68c3aec31b4bec7684b (patch) | |
tree | d1bbdd881b7fdc2f5e8b185f86fced3366dd2923 /lib/bb/cookerdata.py | |
parent | 6059d0e77f60ddb679049bd34478f41b1ab7995d (diff) | |
download | bitbake-3a2503c785a5cd9dca0dc68c3aec31b4bec7684b.tar.gz |
process.py: Handle SystemExit exception to eliminate backtrace
With an invalid layer, the desired error output should be:
ERROR: The following layer directories do not exist:
ERROR: /this_path_does_not_exist
ERROR: Please check BBLAYERS in .../build-invalid-layer/conf/bblayers.conf
Instead we were met with a backtrace:
Traceback (most recent call last):
File "/scratch1/fray/xilinx/poky/bitbake/bin/bitbake", line 36, in <module>
cookerdata.CookerConfiguration()))
...
File "/scratch1/fray/xilinx/poky/bitbake/lib/bb/cookerdata.py", line 267, in parseBaseConfiguration
self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)
File "/scratch1/fray/xilinx/poky/bitbake/lib/bb/cookerdata.py", line 358, in parseConfigurationFiles
sys.exit(1)
SystemExit: 1
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cookerdata.py')
0 files changed, 0 insertions, 0 deletions