
On Tue, Nov 17, 2015 at 08:20:02PM -0700, Stephen Warren wrote:
Whenever a test is about to start, the test scripts log an "implicit" version of the shell prompt. This ensures that each test's log section includes the prompt, which makes it easier to read.
However, pytest apparently doesn't set up stdout capturing for skipped tests. If we print this implicit prompt before we've determined whether the test is skipped, then it may/will appear as stdout in ther terminal where the test script was run, which looks messy.
To avoid this, only print this prompt after we've evaluated whether the test is to be skipped. Note that internally, pytest.skip() raises an exception, which causes the moved code not to execute, now that it's later in the execution path.
Signed-off-by: Stephen Warren swarren@wwwdotorg.org
Reviewed-by: Tom Rini trini@konsulko.com