From dddab0c244e639d30276b6a66ec90f8648c81e78 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Tue, 27 Sep 2011 13:35:23 -0700 Subject: Kill oat_process before rerunning Change-Id: Ibc73c2435bd3e7925eaac535759f4adf1d06901d --- Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.mk b/Android.mk index a27b2f2..f141d51 100644 --- a/Android.mk +++ b/Android.mk @@ -148,6 +148,7 @@ test-art-target-oat-process-Calculator: $(TARGET_OUT_APPS)/Calculator.oat $(TARG adb shell start; \ sleep 30; \ fi + adb shell kill `adb shell ps | fgrep com.android.calculator2 | sed -e 's/[^ ]* *\([0-9]*\).*/\1/'` adb shell sh -c "export CLASSPATH=/system/framework/am.jar && oat_processd /system/bin/app_process -Xbootimage:/system/framework/boot.oat -Ximage:/system/framework/am.oat /system/bin com.android.commands.am.Am start -a android.intent.action.MAIN -n com.android.calculator2/.Calculator && touch /sdcard/test-art-target-process-Calculator" $(hide) (adb pull /sdcard/test-art-target-process-Calculator /tmp/ && echo test-art-target-process-Calculator PASSED) || echo test-art-target-process-Calculator FAILED $(hide) rm /tmp/test-art-target-process-Calculator -- cgit v1.1