diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-03-30 15:30:26 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-03-30 15:30:26 +0100 |
commit | d06dc9cd9a23450ba982c5ef137ccf246c104241 (patch) | |
tree | b5d8f82a3e6bc3f7419a68f49d5cc962d13b41f9 /tools | |
parent | 69aea147263055e5fd4cc63f643999883aa5c88a (diff) | |
download | art-d06dc9cd9a23450ba982c5ef137ccf246c104241.zip art-d06dc9cd9a23450ba982c5ef137ccf246c104241.tar.gz art-d06dc9cd9a23450ba982c5ef137ccf246c104241.tar.bz2 |
Please vogar by not giving a vm-command on host.
If the host is configured with shell (and not bash or mksh), the 'art'
script cannot be run by vogar.
Change-Id: Ib88cea2e45de1ff54477ae8ec3a8e831155d86df
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run-jdwp-tests.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh index 2c555d5..7d3030e 100755 --- a/tools/run-jdwp-tests.sh +++ b/tools/run-jdwp-tests.sh @@ -19,7 +19,7 @@ if [ ! -d libcore ]; then exit 1 fi -if [ $ANDROID_SERIAL == 03a79ae90ae5889b ] || [ $ANDROID_SERIAL == HT4CTJT03670 ] || [ $ANDROID_SERIAL == HT49CJT00070 ]; then +if [[ $ANDROID_SERIAL == 03a79ae90ae5889b ]] || [[ $ANDROID_SERIAL == HT4CTJT03670 ]] || [[ $ANDROID_SERIAL == HT49CJT00070 ]]; then echo "Not run because of localhost failures. Investigating." exit 0 fi @@ -40,13 +40,19 @@ image="-Ximage:/data/art-test/core.art" args=$@ debuggee_args="-Xcompiler-option --compiler-backend=Optimizing -Xcompiler-option --debuggable" device_dir="--device-dir=/data/local/tmp" +# We use the art script on target to ensure the runner and the debuggee share the same +# image. +vm_command="--vm-command=$art" while true; do if [[ "$1" == "--mode=host" ]]; then art="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. device_dir="" + # Vogar knows which VM to use on host. + vm_command="" shift elif [[ $1 == -Ximage:* ]]; then image="$1" @@ -59,7 +65,7 @@ while true; do done # Run the tests using vogar. -vogar --vm-command=$art \ +vogar $vm_command \ --vm-arg $image \ --verbose \ $args \ |