Skip to contentSkip to conversation

oeqa/bbtests: Show useful failure message for gplv3 test

PATCH New Richard Purdie 1 participant 1 message Jun 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

meta/lib/oeqa/selftest/bbtests.py +1 -1
index 0dae160..e4f69a3 100644
@@ -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')))