6429fd1e41
Rename a few files to make their function clearer. Update other files to remove dead code or improve function. Review URL: https://codereview.chromium.org/865943007
16 lines
525 B
Bash
Executable File
16 lines
525 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# android_kill_skia: kills any skia processes on the device.
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
source $SCRIPT_DIR/utils/setup_adb.sh
|
|
|
|
if [ $(uname) == "Linux" ]; then
|
|
$ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs -r $ADB $DEVICE_SERIAL shell kill
|
|
elif [ $(uname) == "Darwin" ]; then
|
|
$ADB $DEVICE_SERIAL shell ps | grep skia | awk '{print $2}' | xargs $ADB $DEVICE_SERIAL shell kill
|
|
else
|
|
echo "Could not automatically determine OS!"
|
|
exit 1;
|
|
fi |