From 292df41bb285b2ede2fd67839ad76b83eda09c55 Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Thu, 7 May 2009 11:09:40 -0700 Subject: [PATCH] Add ability to specify relative class paths when using runtest -c "runtest -c ." will now be equivalent to "runtest -c .", where package is the test-app's package as defined in test_defs.xml. --- testrunner/runtest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)