| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 # Run tests on an actual device. (Better have one plugged in!) | 226 # Run tests on an actual device. (Better have one plugged in!) |
| 227 function bb_run_tests { | 227 function bb_run_tests { |
| 228 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 228 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 229 build/android/run_tests.py --xvfb --verbose | 229 build/android/run_tests.py --xvfb --verbose |
| 230 } | 230 } |
| 231 | 231 |
| 232 # Run APK tests on an actual device. | 232 # Run APK tests on an actual device. |
| 233 function bb_run_apk_tests { | 233 function bb_run_apk_tests { |
| 234 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" | 234 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" |
| 235 tempfile=/tmp/tempfile-$$.txt | 235 build/android/run_tests.py --xvfb --verbose --apk=True |
| 236 # Filter out STEP_FAILURES, we don't want REDNESS on test failures for now. | |
| 237 build/android/run_tests.py --xvfb --verbose --apk=True \ | |
| 238 | sed 's/@@@STEP_FAILURE@@@//g' | tee $tempfile | |
| 239 happy_failure=$(cat $tempfile | grep RUNNER_FAILED | wc -l) | |
| 240 if [[ $happy_failure -eq 0 ]] ; then | |
| 241 echo "@@@STEP_WARNINGS@@@" | |
| 242 fi | |
| 243 rm -f $tempfile | |
| 244 } | 236 } |
| OLD | NEW |