[U-Boot] [PATCH 4/6] test/py: print implicit shell prompt later

Tom Rini trini at konsulko.com
Tue Nov 24 00:44:31 CET 2015


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 at wwwdotorg.org>

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

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


More information about the U-Boot mailing list