From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 23 Oct 2016 21:40:40 -0400 Subject: [U-Boot] test/py: ensure a log section exists for skipped tests In-Reply-To: <20161017232552.29613-1-swarren@wwwdotorg.org> References: <20161017232552.29613-1-swarren@wwwdotorg.org> Message-ID: <20161024014040.GG18591@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Oct 17, 2016 at 05:25:52PM -0600, Stephen Warren wrote: > From: Stephen Warren > > 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 > Reported-by: Stefan Br?ns > Signed-off-by: Stephen Warren > Tested-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: