waf: correct capture of stdout/stderr in subprocess call

This commit is contained in:
Peter Barker 2021-10-18 10:08:57 +11:00 committed by Andrew Tridgell
parent 84db897b7f
commit 8f431c183a

View File

@ -518,7 +518,7 @@ def generate_canard_dsdlc(cfg):
dsdlc_gen_path,
src)
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:
print('Failed to run: ', cmd)
print(ret.stdout.decode('utf-8'))