diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-08 11:34:11 -0700 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-05-08 11:34:11 -0700 |
| commit | cfce2266bbfecd6b2d6b43557df50d5609cd0c78 (patch) | |
| tree | f6251e799a1a69a9ad4adfa9692ab61a12508b7a /testrunner | |
| parent | dbe0cf83b68d61f5402dc4fb2aa3846bb3d528a9 (diff) | |
| parent | 9cd49a44162f465402b0f10faa351364c76a5b76 (diff) | |
| download | android_development-cfce2266bbfecd6b2d6b43557df50d5609cd0c78.tar.gz android_development-cfce2266bbfecd6b2d6b43557df50d5609cd0c78.tar.bz2 android_development-cfce2266bbfecd6b2d6b43557df50d5609cd0c78.zip | |
am 9cd49a4: Merge change 1160 into donut
Merge commit '9cd49a44162f465402b0f10faa351364c76a5b76'
* commit '9cd49a44162f465402b0f10faa351364c76a5b76':
Add ability to specify relative class paths when using runtest -c
Diffstat (limited to 'testrunner')
| -rwxr-xr-x | testrunner/runtest.py | 4 |
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) |
