Merge "chmod +x before running a gtest on the target" into ics-mr1-plus-art
diff --git a/test/etc/push-and-run-test-jar b/test/etc/push-and-run-test-jar
index 8e53529..08df02b 100755
--- a/test/etc/push-and-run-test-jar
+++ b/test/etc/push-and-run-test-jar
@@ -91,10 +91,12 @@
 msg "------------------------------"
 
 if [ "$QUIET" = "n" ]; then
+  adb shell rm -r $DEX_LOCATION
   adb shell mkdir -p $DEX_LOCATION
   adb push $TEST_NAME.jar $DEX_LOCATION
   adb push $TEST_NAME-ex.jar $DEX_LOCATION
 else
+  adb shell rm -r $DEX_LOCATION >/dev/null 2>&1
   adb shell mkdir -p $DEX_LOCATION >/dev/null 2>&1
   adb push $TEST_NAME.jar $DEX_LOCATION >/dev/null 2>&1
   adb push $TEST_NAME-ex.jar $DEX_LOCATION >/dev/null 2>&1