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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
360 wait | 360 wait |
361 ) | 361 ) |
362 } | 362 } |
363 | 363 |
364 # Runs the license checker for the WebView build. | 364 # Runs the license checker for the WebView build. |
365 function bb_check_webview_licenses { | 365 function bb_check_webview_licenses { |
366 echo "@@@BUILD_STEP Check licenses for WebView@@@" | 366 echo "@@@BUILD_STEP Check licenses for WebView@@@" |
367 ( | 367 ( |
368 set +e | 368 set +e |
369 cd "${SRC_ROOT}" | 369 cd "${SRC_ROOT}" |
370 python android_webview/tools/webview_licenses.py scan | 370 python android_webview/tools/webview_licenses.py scan |
Yaron
2012/11/13 17:45:33
Instead change this to:
bb_run_step python android
Isaac (away)
2012/11/13 19:50:34
We would need to change the bb_run_step function a
| |
371 if [[ $? -ne 0 ]]; then | 371 if [[ $? -ne 0 ]]; then |
372 echo "@@@STEP_FAILURE@@@" | 372 echo "@@@STEP_WARNINGS@@@" |
373 fi | 373 fi |
374 return 0 | 374 return 0 |
375 ) | 375 ) |
376 } | 376 } |
377 | 377 |
378 # Retrieve a packed json property using python | 378 # Retrieve a packed json property using python |
379 function bb_get_json_prop { | 379 function bb_get_json_prop { |
380 local JSON="$1" | 380 local JSON="$1" |
381 local PROP="$2" | 381 local PROP="$2" |
382 | 382 |
383 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 383 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
384 } | 384 } |
OLD | NEW |