Skip to content

Commit

Permalink
[infra] Add parens to ensure correct execution order (google#3104). (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor1s authored Jan 9, 2020
1 parent cfe13cb commit 12b5811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions infra/gcb/build_and_run_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ def get_build_steps(project_dir):
'args': [
'bash',
'-c',
('for f in /corpus/*.zip; do unzip -q $f -d ${f%%.*} || '
('for f in /corpus/*.zip; do unzip -q $f -d ${f%%.*} || ('
'echo "Failed to unpack the corpus for $(basename ${f%%.*}). '
'This usually means that corpus backup for a particular fuzz '
'target does not exist. If a fuzz target was added in the last '
'24 hours, please wait one more day. Otherwise, something is '
'wrong with the fuzz target or the infrastructure, and corpus '
'pruning task does not finish successfully." && exit 1; '
'done && coverage')
'pruning task does not finish successfully." && exit 1'
'); done && coverage')
],
'volumes': [{'name': 'corpus', 'path': '/corpus'}],
}
Expand Down
4 changes: 2 additions & 2 deletions infra/gcb/build_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def get_build_steps(project_dir):
# the Dockerfile). Container Builder overrides our workdir
# so we need to add this step to set it back.
('rm -r /out && cd /src && cd {1} && mkdir -p {0} && '
'compile || echo "build_fuzzers {2}" && false')
'compile || (echo "build_fuzzers {2}" && false)')
.format(out, workdir, failure_msg),
],
})
Expand Down Expand Up @@ -282,7 +282,7 @@ def get_build_steps(project_dir):
'args': [
'bash',
'-c',
'test_all || echo "check_build {0}" && false'.format(
'test_all || (echo "check_build {0}" && false)'.format(
failure_msg)
],
})
Expand Down

0 comments on commit 12b5811

Please sign in to comment.