summaryrefslogtreecommitdiffstats
path: root/scripts/oe-selftest
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:10:14 +0000
commit40c07e10415cdeccdbc8d8c49c7cf468f1ba0c04 (patch)
treeebfeeae7efb8cfc2b07920449056398665a0187e /scripts/oe-selftest
parent93e8db222444a7aac24c5153d187bf23613c1768 (diff)
downloadpoky-40c07e10415cdeccdbc8d8c49c7cf468f1ba0c04.tar.gz
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. (From OE-Core rev: 17cd2cb99d3610fd77595ff116b2168188c250cd) Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-selftest')
-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():
468 sys.path.extend(layer_libdirs) 468 sys.path.extend(layer_libdirs)
469 imp.reload(oeqa.selftest) 469 imp.reload(oeqa.selftest)
470 470
471 # act like bitbake and enforce en_US.UTF-8 locale
472 os.environ["LC_ALL"] = "en_US.UTF-8"
473
471 if args.run_tests_by and len(args.run_tests_by) >= 2: 474 if args.run_tests_by and len(args.run_tests_by) >= 2:
472 valid_options = ['name', 'class', 'module', 'id', 'tag'] 475 valid_options = ['name', 'class', 'module', 'id', 'tag']
473 if args.run_tests_by[0] not in valid_options: 476 if args.run_tests_by[0] not in valid_options: