Raise errors on non-zero exits while creating artifacts on the bots. (flutter/engine#6424)

This commit is contained in:
Chinmay Garde
2018-10-03 17:00:44 -07:00
committed by GitHub
parent 479147ef11
commit 37115ff5ec
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ def main():
linker_out = os.path.join(fat_framework, 'Flutter')
subprocess.call([
subprocess.check_call([
'lipo',
arm64_dylib,
armv7_dylib,
@@ -72,14 +72,14 @@ def main():
if args.dsym:
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
subprocess.call(['dsymutil', '-o', dsym_out, linker_out])
subprocess.check_call(['dsymutil', '-o', dsym_out, linker_out])
if args.strip:
# copy unstripped
unstripped_out = os.path.join(args.dst, 'Flutter.unstripped')
shutil.copyfile(linker_out, unstripped_out)
subprocess.call(["strip", "-x", "-S", linker_out])
subprocess.check_call(["strip", "-x", "-S", linker_out])
if __name__ == '__main__':

View File

@@ -30,7 +30,7 @@ def main():
print 'Cannot find i386 (armv7) gen_snapshot at', armv7_gen_snapshot
return 1
subprocess.call([
subprocess.check_call([
'lipo',
arm64_gen_snapshot,
armv7_gen_snapshot,