Skip to content

Commit 65a09f5

Browse files
author
Matthew Farrellee
committed
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
1 parent 1b9001f commit 65a09f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/run-tests

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ function run_test() {
4848

4949
echo "Running PySpark tests. Output is in python/unit-tests.log."
5050

51+
export PYSPARK_PYTHON="python"
52+
5153
# Try to test with Python 2.6, since that's the minimum version that we support:
5254
if [ $(which python2.6) ]; then
5355
export PYSPARK_PYTHON="python2.6"

0 commit comments

Comments
 (0)