[oe-commits] [openembedded-core] 31/60: oe-selftest: enforce en_US.UTF-8 locale

git at git.openembedded.org git at git.openembedded.org
Wed Nov 23 11:11:42 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 17cd2cb99d3610fd77595ff116b2168188c250cd
Author: Maciej Borzecki <maciej.borzecki at rndity.com>
AuthorDate: Tue Nov 15 10:52:11 2016 +0100

    oe-selftest: enforce en_US.UTF-8 locale
    
    Replicate bitbake and eforce en_US.UTF-8 locale so that ouptut of locale-aware
    tools remains stable.
    
    Signed-off-by: Maciej Borzecki <maciej.borzecki at rndity.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/oe-selftest | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index c3215ea..deaa432 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -468,6 +468,9 @@ def main():
     sys.path.extend(layer_libdirs)
     imp.reload(oeqa.selftest)
 
+    # act like bitbake and enforce en_US.UTF-8 locale
+    os.environ["LC_ALL"] = "en_US.UTF-8"
+
     if args.run_tests_by and len(args.run_tests_by) >= 2:
         valid_options = ['name', 'class', 'module', 'id', 'tag']
         if args.run_tests_by[0] not in valid_options:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list