You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jo...@apache.org on 2015/12/16 20:31:15 UTC

spark git commit: [SPARK-12361][PYSPARK][TESTS] Should set PYSPARK_DRIVER_PYTHON before Python tests

Repository: spark
Updated Branches:
  refs/heads/master d252b2d54 -> 6a880afa8


[SPARK-12361][PYSPARK][TESTS] Should set PYSPARK_DRIVER_PYTHON before Python tests

Although this patch still doesn't solve the issue why the return code is 0 (see JIRA description), it resolves the issue of python version mismatch.

Author: Jeff Zhang <zj...@apache.org>

Closes #10322 from zjffdu/SPARK-12361.


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

Branch: refs/heads/master
Commit: 6a880afa831348b413ba95b98ff089377b950666
Parents: d252b2d
Author: Jeff Zhang <zj...@apache.org>
Authored: Wed Dec 16 11:29:47 2015 -0800
Committer: Josh Rosen <jo...@databricks.com>
Committed: Wed Dec 16 11:29:51 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/spark/blob/6a880afa/python/run-tests.py
----------------------------------------------------------------------
diff --git a/python/run-tests.py b/python/run-tests.py
index f5857f8..ee73eb1 100755
--- a/python/run-tests.py
+++ b/python/run-tests.py
@@ -56,7 +56,8 @@ LOGGER = logging.getLogger()
 
 def run_individual_python_test(test_name, pyspark_python):
     env = dict(os.environ)
-    env.update({'SPARK_TESTING': '1', 'PYSPARK_PYTHON': which(pyspark_python)})
+    env.update({'SPARK_TESTING': '1', 'PYSPARK_PYTHON': which(pyspark_python),
+                'PYSPARK_DRIVER_PYTHON': which(pyspark_python)})
     LOGGER.debug("Starting test(%s): %s", pyspark_python, test_name)
     start_time = time.time()
     try:


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