aboutsummaryrefslogtreecommitdiff
path: root/bin/pyspark
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pyspark')
-rwxr-xr-xbin/pyspark6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/pyspark b/bin/pyspark
index d0fa56f319..114cbbc3a8 100755
--- a/bin/pyspark
+++ b/bin/pyspark
@@ -86,6 +86,10 @@ else
if [[ "$IPYTHON" = "1" ]]; then
exec ipython $IPYTHON_OPTS
else
- exec "$PYSPARK_PYTHON"
+ if [[ -n $SPARK_TESTING ]]; then
+ exec "$PYSPARK_PYTHON" -m doctest
+ else
+ exec "$PYSPARK_PYTHON"
+ fi
fi
fi