Skip to content

Commit 386bc24

Browse files
Matthew FarrelleeJoshRosen
authored andcommitted
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 <[email protected]> Closes apache#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
1 parent 16a73c2 commit 386bc24

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/run-tests

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

5151
echo "Running PySpark tests. Output is in python/unit-tests.log."
5252

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

0 commit comments

Comments
 (0)