diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2015-10-13 12:03:46 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-10-13 12:03:46 -0700 |
commit | c75f058b72d492d6de898957b3058f242d70dd8a (patch) | |
tree | 30d70d4b3b93f8f885bb3b0e34f66247538d71f3 /python/run-tests.py | |
parent | f7f28ee7a513c262d52cf433d25fbf06df9bd1f1 (diff) | |
download | spark-c75f058b72d492d6de898957b3058f242d70dd8a.tar.gz spark-c75f058b72d492d6de898957b3058f242d70dd8a.tar.bz2 spark-c75f058b72d492d6de898957b3058f242d70dd8a.zip |
[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.
Diffstat (limited to 'python/run-tests.py')
-rwxr-xr-x | python/run-tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/run-tests.py b/python/run-tests.py index fd56c7ab6e..152f5cc98d 100755 --- a/python/run-tests.py +++ b/python/run-tests.py @@ -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]) |