[OE-core] [PATCH 1/1] selftest/bbtests.py: update test_bitbake_g()
Robert Yang
liezhi.yang at windriver.com
Thu Dec 15 01:57:14 UTC 2016
Add tests:
bitbake -g world
bitbake -g world -cfetchall
I saw they were failed in the past.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/lib/oeqa/selftest/bbtests.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index baae1e0..bec82f8 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -114,11 +114,16 @@ class BitbakeTests(oeSelfTest):
@testcase(167)
def test_bitbake_g(self):
- result = bitbake('-g core-image-full-cmdline')
for f in ['pn-buildlist', 'pn-depends.dot', 'package-depends.dot', 'task-depends.dot']:
self.addCleanup(os.remove, f)
- self.assertTrue('NOTE: PN build list saved to \'pn-buildlist\'' in result.output, msg = "No dependency \"pn-buildlist\" file was generated for the given task target. bitbake output: %s" % result.output)
- self.assertTrue('openssh' in ftools.read_file(os.path.join(self.builddir, 'pn-buildlist')), msg = "No \"openssh\" dependency found in pn-buildlist file.")
+ cmds = ('-g core-image-full-cmdline', '-g world', '-g world -cfetchall')
+ for cmd in cmds:
+ result = bitbake(cmd)
+ self.assertTrue('NOTE: PN build list saved to \'pn-buildlist\'' in result.output, \
+ msg = "No dependency \"pn-buildlist\" file was generated for the given task target. bitbake output: %s. Command: \"bitbake %s\"" % \
+ (result.output, cmd))
+ self.assertTrue('openssh' in ftools.read_file(os.path.join(self.builddir, 'pn-buildlist')), \
+ msg = "No \"openssh\" dependency found in pn-buildlist file. Command: %s" % cmd)
@testcase(899)
def test_image_manifest(self):
--
2.9.0
More information about the Openembedded-core
mailing list