[U-Boot] test/py: ensure a log section exists for skipped tests

Tom Rini trini at konsulko.com
Wed Oct 19 22:13:45 CEST 2016


On Mon, Oct 17, 2016 at 05:25:52PM -0600, Stephen Warren wrote:

> From: Stephen Warren <swarren at nvidia.com>
> 
> In pytest 3, runtestprotocol() may not call pytest_runtest_setup() if
> the test is skipped. That call is required to create a section for the
> test in the log file. If this is skipped, the call to log.end_section()
> at the tail of pytest_runtest_protocol() will throw an exception. This
> patch ensures that a log section always exists, both to avoid the
> exception and to ensure that a consistently structured log file is
> always created.
> 
> Cc: Stefan Brüns <stefan.bruens at rwth-aachen.de>
> Reported-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

travis-ci will give a failing setup without this patch and I can confirm
it's better with this now.

Tested-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161019/91ca25e1/attachment.sig>


More information about the U-Boot mailing list