Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: platform_tools/android/bin/android_kill_skia

Issue 15199005: Fix android_run_skia to work with multiple attached devices (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | platform_tools/android/bin/android_run_skia » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # android_kill_skia: kills any skia processes on the device. 3 # android_kill_skia: kills any skia processes on the device.
4 4
5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6 6
7 source $SCRIPT_DIR/utils/setup_adb.sh 7 source $SCRIPT_DIR/utils/setup_adb.sh
8 8
9 SERIAL=""
10
11 while (( "$#" )); do
12
13 if [[ "$1" == "-s" ]];
14 then
15 if [[ $# -lt 2 ]];
16 then
17 echo "ERROR: missing serial number"
18 exit 1;
19 fi
20 SERIAL="-s $2"
21 shift
22 fi
23 shift
24 done
25
9 if [ $(uname) == "Linux" ]; then 26 if [ $(uname) == "Linux" ]; then
10 $ADB shell ps | grep skia | awk '{print $2}' | xargs -r $ADB shell kill 27 $ADB $SERIAL shell ps | grep skia | awk '{print $2}' | xargs -r $ADB $SERIAL shell kill
11 elif [ $(uname) == "Darwin" ]; then 28 elif [ $(uname) == "Darwin" ]; then
12 $ADB shell ps | grep skia | awk '{print $2}' | xargs $ADB shell kill 29 $ADB $SERIAL shell ps | grep skia | awk '{print $2}' | xargs $ADB $SERIAL sh ell kill
13 else 30 else
14 echo "Could not automatically determine OS!" 31 echo "Could not automatically determine OS!"
15 exit 1; 32 exit 1;
16 fi 33 fi
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/bin/android_run_skia » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698