aboutsummaryrefslogtreecommitdiff
path: root/python/run-tests
diff options
context:
space:
mode:
authorcocoatomo <cocoatomo77@gmail.com>2014-10-09 13:46:26 -0700
committerJosh Rosen <joshrosen@apache.org>2014-10-09 13:46:26 -0700
commite7edb723d22869f228b838fd242bf8e6fe73ee19 (patch)
tree954653d9281401132dfdff4354cab5e6709b1805 /python/run-tests
parent2c8851343a2e4d1d5b3a2b959eaa651a92982a72 (diff)
downloadspark-e7edb723d22869f228b838fd242bf8e6fe73ee19.tar.gz
spark-e7edb723d22869f228b838fd242bf8e6fe73ee19.tar.bz2
spark-e7edb723d22869f228b838fd242bf8e6fe73ee19.zip
[SPARK-3868][PySpark] Hard to recognize which module is tested from unit-tests.log
./python/run-tests script display messages about which test it is running currently on stdout but not write them on unit-tests.log. It is harder for us to recognize what test programs were executed and which test was failed. Author: cocoatomo <cocoatomo77@gmail.com> Closes #2724 from cocoatomo/issues/3868-display-testing-module-name and squashes the following commits: c63d9fa [cocoatomo] [SPARK-3868][PySpark] Hard to recognize which module is tested from unit-tests.log
Diffstat (limited to 'python/run-tests')
-rwxr-xr-xpython/run-tests7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/run-tests b/python/run-tests
index 63395f7278..f6a9684117 100755
--- a/python/run-tests
+++ b/python/run-tests
@@ -25,16 +25,17 @@ FWDIR="$(cd "`dirname "$0"`"; cd ../; pwd)"
cd "$FWDIR/python"
FAILED=0
+LOG_FILE=unit-tests.log
-rm -f unit-tests.log
+rm -f $LOG_FILE
# Remove the metastore and warehouse directory created by the HiveContext tests in Spark SQL
rm -rf metastore warehouse
function run_test() {
- echo "Running test: $1"
+ echo "Running test: $1" | tee -a $LOG_FILE
- SPARK_TESTING=1 time "$FWDIR"/bin/pyspark $1 2>&1 | tee -a unit-tests.log
+ SPARK_TESTING=1 time "$FWDIR"/bin/pyspark $1 2>&1 | tee -a $LOG_FILE
FAILED=$((PIPESTATUS[0]||$FAILED))