[OE-core] [PATCH] oeqa/runtime: Added one automated runtime testcase.

Daniel Istrate daniel.alexandrux.istrate at intel.com
Wed Jul 15 14:42:54 UTC 2015


testcase 240: Checks that bash is installed in image.

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate at intel.com>
---
 meta/lib/oeqa/runtime/bash.py | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta/lib/oeqa/runtime/bash.py

diff --git a/meta/lib/oeqa/runtime/bash.py b/meta/lib/oeqa/runtime/bash.py
new file mode 100644
index 0000000..2a261a3
--- /dev/null
+++ b/meta/lib/oeqa/runtime/bash.py
@@ -0,0 +1,23 @@
+from oeqa.oetest import oeRuntimeTest
+from oeqa.utils.decorators import *
+
+
+class BashTest(oeRuntimeTest):
+
+    @testcase(240)
+    @skipUnlessPassed("test_ssh")
+    def test_check_bash_in_image(self):
+        """
+        Summary:     check bash in image
+        Expected:    bash command should exist in image
+        Product:     BSPs
+        Author:      Alexandru Georgescu <alexandru.c.georgescu at intel.com>
+        AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate at intel.com>
+        """
+
+        cmd = 'which bash'
+        expected_ret = '/bin/bash'
+
+        (status, output) = self.target.run(cmd)
+        self.assertEqual(0, status, 'Failed to send cmd "{}"'.format(cmd))
+        self.assertEqual(str(output), expected_ret, 'Found "{}", instead of "{}"'.format(output, expected_ret))
-- 
2.1.4




More information about the Openembedded-core mailing list