summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@rndity.com>2016-11-15 10:52:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-23 11:02:29 +0000
commit17cd2cb99d3610fd77595ff116b2168188c250cd (patch)
tree132e8afccb4f44b3fb6a1d68d13c6beab2bedfe7
parentc077f4aab2fc956408d4ad45c4e2e2ea6e480624 (diff)
downloadopenembedded-core-17cd2cb99d3610fd77595ff116b2168188c250cd.tar.gz
openembedded-core-17cd2cb99d3610fd77595ff116b2168188c250cd.tar.bz2
openembedded-core-17cd2cb99d3610fd77595ff116b2168188c250cd.zip
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@rndity.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-xscripts/oe-selftest3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index c3215ea659..deaa4324cc 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: