Skip to content
Snippets Groups Projects
Commit b0a928a1 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

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: default avatarStefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Tested-by: default avatarTom Rini <trini@konsulko.com>
parent 3431b392
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment