diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-29 09:16:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:39:59 +0100 |
commit | 3360f9343dbcdbb7d12c2270ef5848966c4dd399 (patch) | |
tree | 7f13f97a02caa21ab741a77909b15638a44b41d9 /meta/lib/oeqa | |
parent | 58ecd46c6483456118327f67b81f93869d458aa9 (diff) | |
download | poky-3360f9343dbcdbb7d12c2270ef5848966c4dd399.tar.gz |
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.
(From OE-Core rev: e54437b7e7c5f1b8c33627b3914f896724207837)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/bbtests.py | 2 |
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): | |||
185 | ftools.append_file(conf ,data) | 185 | ftools.append_file(conf ,data) |
186 | self.addCleanup(ftools.remove_from_file, conf ,data) | 186 | self.addCleanup(ftools.remove_from_file, conf ,data) |
187 | result = bitbake('readline', ignore_status=True) | 187 | result = bitbake('readline', ignore_status=True) |
188 | self.assertEqual(result.status, 0) | 188 | self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output)) |
189 | self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3'))) | 189 | self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3'))) |
190 | self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2'))) | 190 | self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2'))) |