[infra] Break loudly when a build script incorrectly uses /out instead of $OUT

This commit is contained in:
Oliver Chang 2017-03-30 14:20:27 -07:00
parent 649ab84a2f
commit 6d8ecba423
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ def get_build_steps(project_yaml):
'args': [
'bash',
'-c',
'cd /src/{1} && mkdir -p {0} && compile'.format(out, name),
# Remove /out to break loudly when a build script incorrectly uses
# /out instead of $OUT.
'rm -r /out && cd /src/{1} && mkdir -p {0} && compile'.format(out, name),
],
},
# zip binaries