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.
This commit is contained in:
Brett Chabot
2009-05-07 11:09:40 -07:00
parent 85972041d0
commit 292df41bb2

View File

@@ -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)