OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # | 5 # |
6 # Bash functions used by buildbot annotator scripts for the android | 6 # Bash functions used by buildbot annotator scripts for the android |
7 # build of chromium. Executing this script should not perform actions | 7 # build of chromium. Executing this script should not perform actions |
8 # other than setting variables and defining of functions. | 8 # other than setting variables and defining of functions. |
9 | 9 |
10 # Number of jobs on the compile line; e.g. make -j"${JOBS}" | 10 # Number of jobs on the compile line; e.g. make -j"${JOBS}" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
259 --build-properties "$BUILD_PROPERTIES" | 259 --build-properties "$BUILD_PROPERTIES" |
260 } | 260 } |
261 | 261 |
262 # Download and extract a build. | 262 # Download and extract a build. |
263 function bb_extract_build { | 263 function bb_extract_build { |
264 echo "@@@BUILD_STEP Download and extract build@@@" | 264 echo "@@@BUILD_STEP Download and extract build@@@" |
265 if [[ -z $FACTORY_PROPERTIES || -z $BUILD_PROPERTIES ]]; then | 265 if [[ -z $FACTORY_PROPERTIES || -z $BUILD_PROPERTIES ]]; then |
266 return 1 | 266 return 1 |
267 fi | 267 fi |
268 | 268 |
269 # extract_build issues warnings with return code above 1 | |
270 ( | |
271 set +x | |
269 python ../../../../scripts/slave/extract_build.py \ | 272 python ../../../../scripts/slave/extract_build.py \ |
270 --build-dir "$SRC_ROOT" \ | 273 --build-dir "$SRC_ROOT" \ |
271 --build-output-dir "out" \ | 274 --build-output-dir "out" \ |
272 --target Release \ | 275 --target Release \ |
273 --factory-properties "$FACTORY_PROPERTIES" \ | 276 --factory-properties "$FACTORY_PROPERTIES" \ |
274 --build-properties "$BUILD_PROPERTIES" | 277 --build-properties "$BUILD_PROPERTIES" |
278 extract_exitcode=$? | |
279 if (( $extract_exitcode > 1 )); then | |
newt (away)
2012/06/22 00:40:19
Are you intentionally ignoring an error code of 1?
| |
280 echo "@@@STEP_WARNINGS@@@" | |
281 return | |
282 fi | |
283 return $extract_exitcode | |
284 ) | |
275 } | 285 } |
OLD | NEW |