]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
OEQA: move manual bash test to runtime
authorArmin Kuster <akuster808@gmail.com>
Wed, 6 Nov 2019 01:04:39 +0000 (17:04 -0800)
committerArmin Kuster <akuster808@gmail.com>
Tue, 12 Nov 2019 04:12:00 +0000 (20:12 -0800)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/selftest/cases/runtime_test.py

index 7d3922ce4487b7a8f505b481df8a8bae1b26bcea..28804ea15e82b21df6adbee189f8a719bc8ddccf 100644 (file)
@@ -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")