* [PATCH] oeqa/bbtests: Show useful failure message for gplv3 test
@ 2015-06-29 8:16 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-06-29 8:16 UTC (permalink / raw)
To: openembedded-core
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@linuxfoundation.org>
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')))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-29 8:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-29 8:16 [PATCH] oeqa/bbtests: Show useful failure message for gplv3 test Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox