Commit 225f8db9 authored by Ming Rui Zhang's avatar Ming Rui Zhang

script: use subprocess returncode in make-lrc.py

Change-Id: I02c5a10602bea7ffde76b67b302bbab3ed2551f3
parent 9eafa45f
......@@ -97,8 +97,8 @@ def build_project(msbuild, msbuild_args, proj, env_vars):
p = subprocess.Popen(cmd, shell=True,
stdout=sys.stdout,
env=env_vars)
_, perr = p.communicate()
if perr:
_, _ = p.communicate()
if p.returncode:
print("Build failed when building ", proj)
sys.exit(1)
......@@ -151,8 +151,8 @@ def generate(force, qtver, sdk, toolset, arch):
cmd.extend(cmake_options)
p = subprocess.Popen(cmd, shell=True,
stdout=subprocess.PIPE)
_, perr = p.communicate()
if perr:
_, _ = p.communicate()
if p.returncode:
print("Couldn't generate!")
sys.exit(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment