On host, say the debuggee needs to be run through bash.
Change-Id: I2cf7d3123e9d184f40cbaf49f8ac69e1481cc7a4
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index 7d3030e..d63b92f 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -46,7 +46,9 @@
while true; do
if [[ "$1" == "--mode=host" ]]; then
- art="art"
+ # Specify bash explicitly since the art script cannot, since it has to run on the device
+ # with mksh.
+ art="bash out/host/linux-x86/bin/art"
# We force generation of a new image to avoid build-time and run-time classpath differences.
image="-Ximage:/system/non/existent"
# We do not need a device directory on host.