summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2010-03-16 16:27:03 -0700
committerFred Quintana <fredq@google.com>2010-03-16 16:27:03 -0700
commit75a73dc9fb5345844c9529b578b473d84b04a158 (patch)
tree76312b5af568dc0d212883d1b976b5e3946c8788
parent5edd3d7a39b915b657f56fb0d9acc32388b70a37 (diff)
downloadandroid_development-75a73dc9fb5345844c9529b578b473d84b04a158.tar.gz
android_development-75a73dc9fb5345844c9529b578b473d84b04a158.tar.bz2
android_development-75a73dc9fb5345844c9529b578b473d84b04a158.zip
fix runtest for unqualified Instrumentation class names
Change-Id: I0dcc9918b0bde568219d9085e8bbbc4cbba2b552 http://b/issue?id=2472406
-rwxr-xr-xtestrunner/test_defs/test_walker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testrunner/test_defs/test_walker.py b/testrunner/test_defs/test_walker.py
index 834b3d26f..06c4e6d5a 100755
--- a/testrunner/test_defs/test_walker.py
+++ b/testrunner/test_defs/test_walker.py
@@ -278,6 +278,8 @@ class TestWalker(object):
tests = []
for instr_name in manifest.GetInstrumentationNames():
pkg_name = manifest.GetPackageName()
+ if instr_name.find(".") < 0:
+ instr_name = "." + instr_name
logger.SilentLog('Found instrumentation %s/%s' % (pkg_name, instr_name))
suite = instrumentation_test.InstrumentationTestSuite()
suite.SetPackageName(pkg_name)
@@ -294,4 +296,3 @@ class TestWalker(object):
suite.SetSuite('cts')
tests.append(suite)
return tests
-