MCPcopy Create free account
hub / github.com/apache/impala / get_explicit_tests

Function get_explicit_tests

tests/run-tests.py:135–144  ·  view source on GitHub ↗

Returns a list of explicitly specified tests from the given args. Note that access to _pytest.config.argparsing.Parser() constructor is deprecated in pytest 7.0. https://docs.pytest.org/en/stable/deprecations.html#directly-constructing-internal-classes

(args)

Source from the content-addressed store, hash-verified

133
134
135def get_explicit_tests(args):
136 """ Returns a list of explicitly specified tests from the given args.
137
138 Note that access to _pytest.config.argparsing.Parser() constructor is deprecated
139 in pytest 7.0.
140 https://docs.pytest.org/en/stable/deprecations.html#directly-constructing-internal-classes
141 """
142 pytest_arg_parser = Parser()
143 parsed_args = pytest_arg_parser.parse_known_args(args)
144 return parsed_args.file_or_dir
145
146
147def build_test_args(base_name, valid_dirs=VALID_TEST_DIRS):

Callers 1

build_test_argsFunction · 0.85

Calls 1

ParserClass · 0.85

Tested by

no test coverage detected