You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by da...@apache.org on 2015/10/13 21:03:51 UTC

spark git commit: [PYTHON] [MINOR] List modules in PySpark tests when given bad name

Repository: spark
Updated Branches:
  refs/heads/master f7f28ee7a -> c75f058b7


[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 <jo...@databricks.com>

Closes #9088 from jkbradley/python-tests-modules.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c75f058b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c75f058b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c75f058b

Branch: refs/heads/master
Commit: c75f058b72d492d6de898957b3058f242d70dd8a
Parents: f7f28ee
Author: Joseph K. Bradley <jo...@databricks.com>
Authored: Tue Oct 13 12:03:46 2015 -0700
Committer: Davies Liu <da...@gmail.com>
Committed: Tue Oct 13 12:03:46 2015 -0700

----------------------------------------------------------------------
 python/run-tests.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c75f058b/python/run-tests.py
----------------------------------------------------------------------
diff --git a/python/run-tests.py b/python/run-tests.py
index fd56c7a..152f5cc 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])


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org