]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest/devtool: Ensure dbus is built befoe running test
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jul 2018 22:16:28 +0000 (22:16 +0000)
committerArmin Kuster <akuster808@gmail.com>
Tue, 9 Apr 2019 12:27:17 +0000 (17:57 +0530)
If dbus isn't build first the dbus dependency of dbus-wait can't be detected
through pkgconfig and the test fails:

AssertionError: {'DEPENDS': {'dbus'}} != {}
- {'DEPENDS': {'dbus'}}
+ {} : Some expected variables not found in recipe: {'DEPENDS': {'dbus'}}

Ensure dbus is built and present in the sysroot.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/selftest/cases/devtool.py

index 0ce90a4af9b6394274b79ca45d0d650842384d5c..627bc65e42bdab42c27ff3ba4e1a0838aa85f293 100644 (file)
@@ -300,6 +300,8 @@ class DevtoolTests(DevtoolBase):
 
     @OETestID(1423)
     def test_devtool_add_git_local(self):
+        # We need dbus built so that DEPENDS recognition works
+        bitbake('dbus')
         # Fetch source from a remote URL, but do it outside of devtool
         tempdir = tempfile.mkdtemp(prefix='devtoolqa')
         self.track_for_cleanup(tempdir)