waf: correct capture of stdout/stderr in subprocess call
This commit is contained in:
parent
84db897b7f
commit
8f431c183a
2
wscript
2
wscript
@ -518,7 +518,7 @@ def generate_canard_dsdlc(cfg):
|
|||||||
dsdlc_gen_path,
|
dsdlc_gen_path,
|
||||||
src)
|
src)
|
||||||
print("Generating DSDLC for CANARD: " + cmd)
|
print("Generating DSDLC for CANARD: " + cmd)
|
||||||
ret = subprocess.run(cmd, shell=True, capture_output=True)
|
ret = subprocess.run(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if ret.returncode != 0:
|
if ret.returncode != 0:
|
||||||
print('Failed to run: ', cmd)
|
print('Failed to run: ', cmd)
|
||||||
print(ret.stdout.decode('utf-8'))
|
print(ret.stdout.decode('utf-8'))
|
||||||
|
Loading…
Reference in New Issue
Block a user