summaryrefslogtreecommitdiffstats
path: root/testrunner
diff options
context:
space:
mode:
authorBrett Chabot <brettchabot@google.com>2009-05-07 11:09:40 -0700
committerBrett Chabot <brettchabot@google.com>2009-05-07 11:09:40 -0700
commit292df41bb285b2ede2fd67839ad76b83eda09c55 (patch)
tree0ce9a0c5a096edf9348dee211593fbcaf120bb06 /testrunner
parent85972041d04b24f26000c5504c1afe9d824b6c9a (diff)
downloadandroid_development-292df41bb285b2ede2fd67839ad76b83eda09c55.tar.gz
android_development-292df41bb285b2ede2fd67839ad76b83eda09c55.tar.bz2
android_development-292df41bb285b2ede2fd67839ad76b83eda09c55.zip
Add ability to specify relative class paths when using runtest -c
"runtest -c .<className>" will now be equivalent to "runtest -c <package>.<className>", where package is the test-app's package as defined in test_defs.xml.
Diffstat (limited to 'testrunner')
-rwxr-xr-xtestrunner/runtest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testrunner/runtest.py b/testrunner/runtest.py
index fde67adf7..a87f9b5b6 100755
--- a/testrunner/runtest.py
+++ b/testrunner/runtest.py
@@ -249,7 +249,9 @@ class TestRunner(object):
test_class = test_suite.GetClassName()
if self._options.test_class is not None:
- test_class = self._options.test_class
+ test_class = self._options.test_class.lstrip()
+ if test_class.startswith("."):
+ test_class = test_suite.GetPackageName() + test_class
if self._options.test_method is not None:
test_class = "%s#%s" % (test_class, self._options.test_method)