[OE-core] [PATCH] oeqa/runtime/locales.py:added runtime test locales

Pravin Patil pravin.shankarx.patil at intel.com
Wed Apr 18 13:38:00 UTC 2018


    Add runtime test for locales packages to test that is it
    installed or not.

Signed-off-by: Pravin Patil <pravin.shankarx.patil at intel.com>
---
 meta/lib/oeqa/runtime/cases/locales.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 meta/lib/oeqa/runtime/cases/locales.py

diff --git a/meta/lib/oeqa/runtime/cases/locales.py b/meta/lib/oeqa/runtime/cases/locales.py
new file mode 100755
index 0000000..251bd04
--- /dev/null
+++ b/meta/lib/oeqa/runtime/cases/locales.py
@@ -0,0 +1,11 @@
+import os
+
+from oeqa.runtime.case import OERuntimeTestCase
+from oeqa.core.decorator.depends import OETestDepends
+from oeqa.runtime.decorator.package import OEHasPackage
+
+class LocaleTest(OERuntimeTestCase):
+      def test_locale(self):
+        cmd = "locale -a | grep -w 'fr_FR'"
+        (status,output) = self.target.run(cmd)
+        self.assertEqual(status, 0, output)
-- 
2.7.4




More information about the Openembedded-core mailing list