Index: platform_tools/android/bin/android_run_skia |
=================================================================== |
--- platform_tools/android/bin/android_run_skia (revision 11347) |
+++ platform_tools/android/bin/android_run_skia (working copy) |
@@ -33,6 +33,9 @@ |
STATUS_FILENAME="/data/local/tmp/.skia_tmp_$(date +%s%N)" |
$ADB ${DEVICE_SERIAL} shell "/data/local/tmp/skia_launcher ${runVars[@]}; echo \$? > ${STATUS_FILENAME}" |
+if [ -z "$($ADB $DEVICE_SERIAL shell 'if [ -f $STATUS_FILENAME ]; then echo exists; fi')" ]; then |
+ exit 1 |
+fi |
EXIT_CODE=`$ADB ${DEVICE_SERIAL} shell cat ${STATUS_FILENAME}` |
$ADB ${DEVICE_SERIAL} shell rm ${STATUS_FILENAME} |
if [ $'0\r' != ${EXIT_CODE} ]; then |