diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/bbtests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/bbtests.py b/meta/lib/oeqa/selftest/cases/bbtests.py index 8e59bafae3..9461c7ed14 100644 --- a/meta/lib/oeqa/selftest/cases/bbtests.py +++ b/meta/lib/oeqa/selftest/cases/bbtests.py | |||
@@ -118,11 +118,12 @@ class BitbakeTests(OESelftestTestCase): | |||
118 | self.assertIn(task, result.output, msg="Couldn't find %s task.") | 118 | self.assertIn(task, result.output, msg="Couldn't find %s task.") |
119 | 119 | ||
120 | def test_bitbake_g(self): | 120 | def test_bitbake_g(self): |
121 | result = bitbake('-g core-image-minimal') | 121 | recipe = 'base-files' |
122 | result = bitbake('-g %s' % recipe) | ||
122 | for f in ['pn-buildlist', 'task-depends.dot']: | 123 | for f in ['pn-buildlist', 'task-depends.dot']: |
123 | self.addCleanup(os.remove, f) | 124 | self.addCleanup(os.remove, f) |
124 | self.assertTrue('Task dependencies saved to \'task-depends.dot\'' in result.output, msg = "No task dependency \"task-depends.dot\" file was generated for the given task target. bitbake output: %s" % result.output) | 125 | self.assertTrue('Task dependencies saved to \'task-depends.dot\'' in result.output, msg = "No task dependency \"task-depends.dot\" file was generated for the given task target. bitbake output: %s" % result.output) |
125 | self.assertTrue('busybox' in ftools.read_file(os.path.join(self.builddir, 'task-depends.dot')), msg = "No \"busybox\" dependency found in task-depends.dot file.") | 126 | self.assertTrue(recipe in ftools.read_file(os.path.join(self.builddir, 'task-depends.dot')), msg = "No \"%s\" dependency found in task-depends.dot file." % recipe) |
126 | 127 | ||
127 | def test_image_manifest(self): | 128 | def test_image_manifest(self): |
128 | bitbake('core-image-minimal') | 129 | bitbake('core-image-minimal') |