From: Maciej Borzecki Date: Tue, 15 Nov 2016 09:52:11 +0000 (+0100) Subject: oe-selftest: enforce en_US.UTF-8 locale X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23565 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cd2cb99d3610fd77595ff116b2168188c250cd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/scripts/oe-selftest b/scripts/oe-selftest index c3215ea6592..deaa4324cc8 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: