diff options
author | Jeff Zhang <zjffdu@apache.org> | 2015-12-16 11:29:47 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-12-16 11:29:51 -0800 |
commit | 6a880afa831348b413ba95b98ff089377b950666 (patch) | |
tree | e8ce6d1f6fdeb230c573fa889308e42a9b609b2a /python/run-tests.py | |
parent | d252b2d544a75f6c5523be3492494955050acf50 (diff) | |
download | spark-6a880afa831348b413ba95b98ff089377b950666.tar.gz spark-6a880afa831348b413ba95b98ff089377b950666.tar.bz2 spark-6a880afa831348b413ba95b98ff089377b950666.zip |
[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 <zjffdu@apache.org>
Closes #10322 from zjffdu/SPARK-12361.
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 f5857f8c62..ee73eb1506 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: |