diff options
author | Matthew Farrellee <matt@redhat.com> | 2014-09-08 12:37:52 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@apache.org> | 2014-09-08 12:37:52 -0700 |
commit | 386bc24ebe3e75875b9647d9223c62d7b9dc9963 (patch) | |
tree | b9612ab96ea8b2b582bb79b3867d19c605c4472b | |
parent | 16a73c2473181e03d88001aa3e08e6ffac92eb8b (diff) | |
download | spark-386bc24ebe3e75875b9647d9223c62d7b9dc9963.tar.gz spark-386bc24ebe3e75875b9647d9223c62d7b9dc9963.tar.bz2 spark-386bc24ebe3e75875b9647d9223c62d7b9dc9963.zip |
Provide a default PYSPARK_PYTHON for python/run_tests
Without this the version of python used in the test is not
recorded. The error is,
Testing with Python version:
./run-tests: line 57: --version: command not found
Author: Matthew Farrellee <matt@redhat.com>
Closes #2300 from mattf/master-fix-python-run-tests and squashes the following commits:
65a09f5 [Matthew Farrellee] Provide a default PYSPARK_PYTHON for python/run_tests
-rwxr-xr-x | python/run-tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/run-tests b/python/run-tests index 226e9e2c37..d98840de59 100755 --- a/python/run-tests +++ b/python/run-tests @@ -50,6 +50,8 @@ function run_test() { echo "Running PySpark tests. Output is in python/unit-tests.log." +export PYSPARK_PYTHON="python" + # Try to test with Python 2.6, since that's the minimum version that we support: if [ $(which python2.6) ]; then export PYSPARK_PYTHON="python2.6" |