]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/core/runner: Don't log details twice if test fails
authorAníbal Limón <anibal.limon@linux.intel.com>
Mon, 12 Jun 2017 21:41:17 +0000 (16:41 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Jun 2017 09:46:31 +0000 (10:46 +0100)
The details of a test failure is upper on the unittest output
so don't log twice the actual failure.

[YOCTO #11622]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/runner.py

index 532b25b98a4a5954a4aa1c8e7e01c233e534c6f2..8a55c24c788166404b0f60097a30569c90e56a60 100644 (file)
@@ -129,8 +129,6 @@ class OETestResult(_TestResult):
             if fail:
                 self.tc.logger.info("RESULTS - %s - Testcase %s: %s" % (case.id(),
                     oeid, desc))
-                if msg:
-                    self.tc.logger.info(msg)
             else:
                 self.tc.logger.info("RESULTS - %s - Testcase %s: %s" % (case.id(),
                     oeid, 'PASSED'))