Home
last modified time | relevance | path

Searched hist:b0a928a15d7825c08f3be1a3ec5c4bcd8b465fd8 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/test/py/
H A Dconftest.pyb0a928a15d7825c08f3be1a3ec5c4bcd8b465fd8 Mon Oct 17 23:25:52 UTC 2016 Stephen Warren <swarren@nvidia.com> test/py: ensure a log section exists for skipped tests

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@rwth-aachen.de>
Reported-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Tom Rini <trini@konsulko.com>