|
32 | 32 | from tools.targets import TARGET_MAP
|
33 | 33 | from tools.utils import mkdir, ToolException, NotSupportedException
|
34 | 34 | from tools.test_exporters import ReportExporter, ResultExporterType
|
35 |
| -from utils import argparse_filestring_type, argparse_lowercase_type |
| 35 | +from utils import argparse_filestring_type, argparse_lowercase_type, argparse_many |
36 | 36 |
|
37 | 37 | if __name__ == '__main__':
|
38 | 38 | try:
|
|
61 | 61 | default=False, help="List (recursively) available tests in order and exit")
|
62 | 62 |
|
63 | 63 | parser.add_argument("-p", "--paths", dest="paths",
|
64 |
| - type=argparse_filestring_type, nargs="*" |
| 64 | + type=argparse_many(argparse_filestring_type), |
65 | 65 | default=None, help="Limit the tests to those within the specified comma separated list of paths")
|
66 | 66 |
|
67 | 67 | format_choices = ["list", "json"]
|
|
74 | 74 | parser.add_argument("--continue-on-build-fail", action="store_true", dest="continue_on_build_fail",
|
75 | 75 | default=None, help="Continue trying to build all tests if a build failure occurs")
|
76 | 76 |
|
77 |
| - parser.add_argument("-n", "--names", dest="names", nargs="*" |
| 77 | + #TODO validate the names instead of just passing through str |
| 78 | + parser.add_argument("-n", "--names", dest="names", type=argparse_many(str), |
78 | 79 | default=None, help="Limit the tests to a comma separated list of names")
|
79 | 80 |
|
80 | 81 | parser.add_argument("--test-spec", dest="test_spec",
|
|
0 commit comments