[OE-core] [PATCH 14/20] OEQA: move manual bash test to runtime

Armin Kuster akuster808 at gmail.com
Tue Nov 12 04:33:33 UTC 2019


Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 7d3922c..28804ea 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -322,3 +322,20 @@ class Postinst(OESelftestTestCase):
                 self.assertFalse(os.path.isfile(os.path.join(hosttestdir, "rootfs-after-failure")),
                                     "rootfs-after-failure file was created")
 
+
+
+class Bsp(OESelftestTestCase):
+    def test_bash_installed(self):
+        """
+        Summary:        The purpose of this test case is to verify that bash 
+                        in exists in the image. Test came from manual.
+        Expected:       Bash is found.
+        """
+
+        features = 'IMAGE_INSTALL_append = " bash"\n'
+        self.write_config(features)
+        bitbake('core-image-minimal')
+
+        with runqemu('core-image-minimal') as qemu:
+            result = runCmd("which bash" , shell=True)
+            self.assertEqual(0, result.status, "Couldn't find bash")
-- 
2.7.4



More information about the Openembedded-core mailing list