sanitycheck: fix false passed on localized error message
Fix false passed on localized error message in make invocation. Fixes #8348 Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
133f9c4885
commit
9cf8b3cd20
1 changed files with 5 additions and 1 deletions
|
@ -1096,7 +1096,11 @@ class MakeGenerator:
|
||||||
|
|
||||||
cmd = ["make", "-k", "-j", str(JOBS), "-f", tf.name, "all"]
|
cmd = ["make", "-k", "-j", str(JOBS), "-f", tf.name, "all"]
|
||||||
|
|
||||||
p = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=devnull)
|
# assure language neutral environemnt
|
||||||
|
make_env = os.environ.copy()
|
||||||
|
make_env['LC_MESSAGES'] = 'C.UTF-8'
|
||||||
|
p = subprocess.Popen(cmd, stderr=subprocess.PIPE,
|
||||||
|
stdout=devnull, env=make_env)
|
||||||
|
|
||||||
for line in iter(p.stderr.readline, b''):
|
for line in iter(p.stderr.readline, b''):
|
||||||
line = line.decode("utf-8")
|
line = line.decode("utf-8")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue