Repository: spark Updated Branches: refs/heads/master 2c8851343 -> e7edb723d
[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 <[email protected]> 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 Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e7edb723 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e7edb723 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e7edb723 Branch: refs/heads/master Commit: e7edb723d22869f228b838fd242bf8e6fe73ee19 Parents: 2c88513 Author: cocoatomo <[email protected]> Authored: Thu Oct 9 13:46:26 2014 -0700 Committer: Josh Rosen <[email protected]> Committed: Thu Oct 9 13:46:26 2014 -0700 ---------------------------------------------------------------------- python/run-tests | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/e7edb723/python/run-tests ---------------------------------------------------------------------- diff --git a/python/run-tests b/python/run-tests index 63395f7..f6a9684 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)) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
