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:
Bobby Noelte 2018-06-13 06:10:20 +02:00 committed by Anas Nashif
commit 9cf8b3cd20

View file

@ -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")