Skip to content

Commit

Permalink
Provide a default PYSPARK_PYTHON for python/run_tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mattf authored and JoshRosen committed Sep 8, 2014
1 parent 16a73c2 commit 386bc24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 386bc24

Please sign in to comment.