We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b048632 commit f39df81Copy full SHA for f39df81
unittests.py
@@ -1093,6 +1093,15 @@ def main():
1093
if not testcases:
1094
LOGGER.error("No test matches the provided regex pattern")
1095
elif options.testcase:
1096
+ for name, module, _ in tests.get_test_modules():
1097
+ if name == options.testcase or module == options.testcase:
1098
+ LOGGER.info("Executing tests in module %s", module)
1099
+ testcases = [module]
1100
+ break
1101
+ if not testcases:
1102
+ LOGGER.error("Test case not valid; see --help-tests")
1103
+ sys.exit(1)
1104
+ elif options.onetest:
1105
LOGGER.info("Executing test: %s", options.onetest)
1106
testcases = [options.onetest]
1107
else:
0 commit comments