summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-05-25 10:37:12 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-05-25 10:37:12 +0000
commit0b3e830d145e2414a06e64a711c60bb015f31185 (patch)
tree72bb0272bd65ca66a7bc6ca08a2668d9586aaf1e
parentbfd6df4e0783fcc480d2f9a9b89c9fa4c4cde631 (diff)
parent6aa4e0d6d54fd061387f1ffc88ea2f96daad9425 (diff)
Merge "ART: Fix run-test invocation for jvm tests"
-rwxr-xr-xtest/run-test5
-rwxr-xr-xtest/testrunner/testrunner.py5
2 files changed, 8 insertions, 2 deletions
diff --git a/test/run-test b/test/run-test
index 8e012d13fb..5bd8b3b348 100755
--- a/test/run-test
+++ b/test/run-test
@@ -441,6 +441,11 @@ while true; do
fi
done
+if [ "$usage" = "no" -a "x$1" = "x" ]; then
+ echo "missing test to run" 1>&2
+ usage="yes"
+fi
+
# The DEX_LOCATION with the chroot prefix, if any.
chroot_dex_location="$chroot$DEX_LOCATION"
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index 09b9b210fc..be7e225e05 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -411,8 +411,9 @@ def run_tests(tests):
elif prebuild == 'no-dex2oat':
options_test += ' --no-prebuild --no-dex2oat'
- # Add option and remove the cdex- prefix.
- options_test += ' --compact-dex-level ' + cdex_level.replace('cdex-','')
+ if cdex_level:
+ # Add option and remove the cdex- prefix.
+ options_test += ' --compact-dex-level ' + cdex_level.replace('cdex-','')
if compiler == 'optimizing':
options_test += ' --optimizing'