Skip to content
Snippets Groups Projects
Commit c75f058b authored by Joseph K. Bradley's avatar Joseph K. Bradley Committed by Davies Liu
Browse files

[PYTHON] [MINOR] List modules in PySpark tests when given bad name

Output list of supported modules for python tests in error message when given bad module name.

CC: davies

Author: Joseph K. Bradley <joseph@databricks.com>

Closes #9088 from jkbradley/python-tests-modules.
parent f7f28ee7
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,8 @@ def main():
if module_name in python_modules:
modules_to_test.append(python_modules[module_name])
else:
print("Error: unrecognized module %s" % module_name)
print("Error: unrecognized module '%s'. Supported modules: %s" %
(module_name, ", ".join(python_modules)))
sys.exit(-1)
LOGGER.info("Will test against the following Python executables: %s", python_execs)
LOGGER.info("Will test the following Python modules: %s", [x.name for x in modules_to_test])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment