[oe-commits] Richard Purdie : oeqa/bbtests: Show useful failure message for gplv3 test

git at git.openembedded.org git at git.openembedded.org
Mon Jun 29 08:28:25 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 00b99a158c286d61becae5cc561bd44c7406ea30
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=00b99a158c286d61becae5cc561bd44c7406ea30

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Jun 29 09:16:43 2015 +0100

oeqa/bbtests: Show useful failure message for gplv3 test

If this test fails the current output tells us nothing about what happened.
Show the exit status and output to aid debugging.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/selftest/bbtests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index 0dae160..e4f69a3 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -185,6 +185,6 @@ class BitbakeTests(oeSelfTest):
         ftools.append_file(conf ,data)
         self.addCleanup(ftools.remove_from_file, conf ,data)
         result = bitbake('readline', ignore_status=True)
-        self.assertEqual(result.status, 0)
+        self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output))
         self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3')))
         self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2')))



More information about the Openembedded-commits mailing list