mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
93e8db2224
commit
40c07e1041
@@ -468,6 +468,9 @@ def main():
|
|||||||
sys.path.extend(layer_libdirs)
|
sys.path.extend(layer_libdirs)
|
||||||
imp.reload(oeqa.selftest)
|
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:
|
if args.run_tests_by and len(args.run_tests_by) >= 2:
|
||||||
valid_options = ['name', 'class', 'module', 'id', 'tag']
|
valid_options = ['name', 'class', 'module', 'id', 'tag']
|
||||||
if args.run_tests_by[0] not in valid_options:
|
if args.run_tests_by[0] not in valid_options:
|
||||||
|
|||||||
Reference in New Issue
Block a user