]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
event: Fix subprocess event error traceback failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Dec 2015 12:02:56 +0000 (12:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2015 23:07:13 +0000 (23:07 +0000)
commit05695424b918fc81b16cbac70d79d8271a0b6045
treed186c5903ce1696de52334468f4c54ca24ef69bb
parent16bfd3e3d145705a2b3a05648ddbcacc7a338dfa
event: Fix subprocess event error traceback failures

If subprocess raises a CalledProcessError() error, e.g. from a call
like subprocess.check_call("false"), bitbake would try and pass the
object over IPC and fail, leading to an unusual error:

('__init__() takes at least 3 arguments (1 given)', <class 'subprocess.CalledProcessError'>, ())%

To avoid this, we turn the value into a string which prevents the
issues the IPC has trying to deal with the object (for the same reason
we deal with tracebacks here too).

[YOCTO #8752]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/event.py