summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-29 09:16:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-01 15:38:22 +0100
commite54437b7e7c5f1b8c33627b3914f896724207837 (patch)
tree167080c8a8ecfc4d7887fd7fc100969d76738c6a /meta/lib
parentdb01d6ba2ce87e1586dc8804dd823a0a038d5794 (diff)
downloadopenembedded-core-e54437b7e7c5f1b8c33627b3914f896724207837.tar.gz
openembedded-core-e54437b7e7c5f1b8c33627b3914f896724207837.tar.bz2
openembedded-core-e54437b7e7c5f1b8c33627b3914f896724207837.zip
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@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index f4f3884f7e..9bd34ee121 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')))