Don't suppress stderr for 'avbtool make_vbmeta_image'
Output is useful for debugging. Bug: 72837107 Test: Local sign_target_files_apks run of locally built target-files Change-Id: I5c27fcc86fa3a51080e0502eb8f5f01a40b033c3
This commit is contained in:
parent
97f21ac01c
commit
69d3feb23a
1 changed files with 8 additions and 6 deletions
|
@ -415,9 +415,10 @@ def AddVBMeta(output_zip, partitions):
|
|||
assert found, 'failed to find %s' % (image_path,)
|
||||
cmd.extend(split_args)
|
||||
|
||||
p = common.Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
p.communicate()
|
||||
assert p.returncode == 0, "avbtool make_vbmeta_image failed"
|
||||
p = common.Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
stdoutdata, _ = p.communicate()
|
||||
assert p.returncode == 0, \
|
||||
"avbtool make_vbmeta_image failed:\n{}".format(stdoutdata)
|
||||
img.Write()
|
||||
|
||||
|
||||
|
@ -444,9 +445,10 @@ def AddPartitionTable(output_zip):
|
|||
if args:
|
||||
cmd.extend(shlex.split(args))
|
||||
|
||||
p = common.Run(cmd, stdout=subprocess.PIPE)
|
||||
p.communicate()
|
||||
assert p.returncode == 0, "bpttool make_table failed"
|
||||
p = common.Run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
stdoutdata, _ = p.communicate()
|
||||
assert p.returncode == 0, \
|
||||
"bpttool make_table failed:\n{}".format(stdoutdata)
|
||||
|
||||
img.Write()
|
||||
bpt.Write()
|
||||
|
|
Loading…
Reference in a new issue