]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/utils/concurrencytest.py: Handle exceptions and details
authorNathan Rossi <nathan@nathanrossi.com>
Fri, 27 Sep 2019 05:31:08 +0000 (05:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Sep 2019 12:35:26 +0000 (13:35 +0100)
commit3613451825b251784b7673d89db465b9782c3a31
tree78c81ae9fd21bca32b0a972d1631c15bd5c697f1
parent05c6842e747261b3350d6325e238429cf8728ca0
oeqa/core/utils/concurrencytest.py: Handle exceptions and details

Handle the streaming of exception content with details data. The
testtools package allows both 'err' and 'details' kwargs but can only
pass one of them to the parent.

To handle the passing of exception traceback and details data at the
same time, encode the traceback into the details object and remove the
'err' arg from the add* result call. This encodes the traceback similar
to how 'err' is handled without any details object. Decoding is already
done by testtools when the traceback is encoded in the details object.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/utils/concurrencytest.py