Make run-jdwp-tests.sh kill zombie dalvikvm processes
We weren't killing zombie dalvikvm processes due to changes in how we
control the targets of the tests.
Follow up to Commit: 617c9c502
Test: ./art/tools/run-jdwp-tests.sh --mode=host
Bug: 67778411
Bug: 62821960
Change-Id: I014cb36b586b628e4916c4490bb8587561f70aec
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index cee75df..f9dfb8b 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -308,7 +308,7 @@
vogar_exit_status=$?
echo "Killing stalled dalvikvm processes..."
-if [[ $host == "yes" ]]; then
+if [[ $mode == "host" ]]; then
pkill -9 -f /bin/dalvikvm
else
adb shell pkill -9 -f /bin/dalvikvm