summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dotest_args.py
diff options
context:
space:
mode:
authorLawrence D'Anna <lawrence_danna@apple.com>2019-10-08 00:26:53 +0000
committerLawrence D'Anna <lawrence_danna@apple.com>2019-10-08 00:26:53 +0000
commit5d10e417e97bfe7581c72460c46f83722ece6693 (patch)
tree765c31315c6f262949be75b0d128b9b947aabee6 /lldb/packages/Python/lldbsuite/test/dotest_args.py
parent37cf39df20825980adf55143005b553bb7e12047 (diff)
downloadbcm5719-llvm-5d10e417e97bfe7581c72460c46f83722ece6693.tar.gz
bcm5719-llvm-5d10e417e97bfe7581c72460c46f83722ece6693.zip
DWIMy filterspecs for dotest.py
Summary: dotest.py currently requires a filterspec to be of the form `TestCase.test_method`. This patch makes it more flexible, so you can pass `TestModule.TestCase.test_method` or `TestModule.TestCase` or `TestCase.test_method` or just `test_method`. This makes it more convenient to just copy a test name out of the terminal after running a bunch of tests and use it as a filterspec. Reviewers: JDevlieghere, jasonmolenda, labath Reviewed By: JDevlieghere Subscribers: jingham, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D68545 llvm-svn: 373997
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_args.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest_args.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py
index 8de4d8dbb2f..4922f27c7bf 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest_args.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py
@@ -61,7 +61,9 @@ def create_parser():
'-f',
metavar='filterspec',
action='append',
- help='Specify a filter, which consists of the test class name, a dot, followed by the test method, to only admit such test into the test suite') # FIXME: Example?
+ help=('Specify a filter, which looks like "TestModule.TestClass.test_name". '+
+ 'You may also use shortened filters, such as '+
+ '"TestModule.TestClass", "TestClass.test_name", or just "test_name".'))
group.add_argument(
'-p',
metavar='pattern',
OpenPOWER on IntegriCloud