Skip to content

Commit 30f78af

Browse files
authored
Raise errors on non-zero exits while creating artifacts on the bots. (flutter#6424)
1 parent 191168c commit 30f78af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sky/tools/create_ios_framework.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def main():
6060

6161
linker_out = os.path.join(fat_framework, 'Flutter')
6262

63-
subprocess.call([
63+
subprocess.check_call([
6464
'lipo',
6565
arm64_dylib,
6666
armv7_dylib,
@@ -72,14 +72,14 @@ def main():
7272

7373
if args.dsym:
7474
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
75-
subprocess.call(['dsymutil', '-o', dsym_out, linker_out])
75+
subprocess.check_call(['dsymutil', '-o', dsym_out, linker_out])
7676

7777
if args.strip:
7878
# copy unstripped
7979
unstripped_out = os.path.join(args.dst, 'Flutter.unstripped')
8080
shutil.copyfile(linker_out, unstripped_out)
8181

82-
subprocess.call(["strip", "-x", "-S", linker_out])
82+
subprocess.check_call(["strip", "-x", "-S", linker_out])
8383

8484

8585
if __name__ == '__main__':

sky/tools/create_macos_gen_snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030
print 'Cannot find i386 (armv7) gen_snapshot at', armv7_gen_snapshot
3131
return 1
3232

33-
subprocess.call([
33+
subprocess.check_call([
3434
'lipo',
3535
arm64_gen_snapshot,
3636
armv7_gen_snapshot,

0 commit comments

Comments
 (0)