aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavies Liu <davies@databricks.com>2015-02-12 14:54:38 -0800
committerAndrew Or <andrew@databricks.com>2015-02-12 14:54:38 -0800
commit0bf031582588723dd5a4ca42e6f9f36bc2da1a0b (patch)
tree68b9b88f40cb02a8c718e65695298340c1e9b14b
parent26c816e7388eaa336a59183029f86548f1cc279c (diff)
downloadspark-0bf031582588723dd5a4ca42e6f9f36bc2da1a0b.tar.gz
spark-0bf031582588723dd5a4ca42e6f9f36bc2da1a0b.tar.bz2
spark-0bf031582588723dd5a4ca42e6f9f36bc2da1a0b.zip
[SPARK-5780] [PySpark] Mute the logging during unit tests
There a bunch of logging coming from driver and worker, it's noisy and scaring, and a lots of exception in it, people are confusing about the tests are failing or not. This PR will mute the logging during tests, only show them if any one failed. Author: Davies Liu <davies@databricks.com> Closes #4572 from davies/mute and squashes the following commits: 1e9069c [Davies Liu] mute the logging during python tests
-rwxr-xr-xpython/run-tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/run-tests b/python/run-tests
index 58a26dd8ff..077ad60d76 100755
--- a/python/run-tests
+++ b/python/run-tests
@@ -35,7 +35,7 @@ rm -rf metastore warehouse
function run_test() {
echo "Running test: $1" | tee -a $LOG_FILE
- SPARK_TESTING=1 time "$FWDIR"/bin/pyspark $1 2>&1 | tee -a $LOG_FILE
+ SPARK_TESTING=1 time "$FWDIR"/bin/pyspark $1 >> $LOG_FILE 2>&1
FAILED=$((PIPESTATUS[0]||$FAILED))