From 53168e075e4b85e7f85d5a80bf68981d2f359adf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 Jun 2021 14:59:48 +0530 Subject: [PATCH] Alias for test name option --- setup/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/test.py b/setup/test.py index de70546161..3c1fd16ff7 100644 --- a/setup/test.py +++ b/setup/test.py @@ -169,7 +169,7 @@ class Test(Command): parser.add_option('--test-verbosity', type=int, default=4, help='Test verbosity (0-4)') parser.add_option('--test-module', '--test-group', default=[], action='append', type='choice', choices=sorted(map(str, TEST_MODULES)), help='The test module to run (can be specified more than once for multiple modules). Choices: %s' % ', '.join(sorted(TEST_MODULES))) - parser.add_option('--test-name', default=[], action='append', + parser.add_option('--test-name', '-n', default=[], action='append', help='The name of an individual test to run. Can be specified more than once for multiple tests. The name of the' ' test is the name of the test function without the leading test_. For example, the function test_something()' ' can be run by specifying the name "something".')