Repository: spark Updated Branches: refs/heads/master bca79c823 -> 2d76cb11f
[SPARK-17276][CORE][TEST] Stop env params output on Jenkins job page https://issues.apache.org/jira/browse/SPARK-17276 ## What changes were proposed in this pull request? When trying to find error msg in a failed Jenkins build job, I'm annoyed by the huge env output. The env parameter output should be muted.  ## How was this patch tested? Tested manually on local laptop. Author: Xin Ren <[email protected]> Closes #14848 from keypointt/SPARK-17276. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2d76cb11 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2d76cb11 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2d76cb11 Branch: refs/heads/master Commit: 2d76cb11f51b20a57af7bdefb7a74fdfe41060aa Parents: bca79c8 Author: Xin Ren <[email protected]> Authored: Tue Aug 30 11:18:29 2016 +0100 Committer: Sean Owen <[email protected]> Committed: Tue Aug 30 11:18:29 2016 +0100 ---------------------------------------------------------------------- core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala | 2 +- .../org/apache/spark/sql/hive/execution/SQLQuerySuite.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/2d76cb11/core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala ---------------------------------------------------------------------- diff --git a/core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala b/core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala index 387f3e2..7293aa9 100644 --- a/core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala +++ b/core/src/test/scala/org/apache/spark/rdd/PipedRDDSuite.scala @@ -214,7 +214,7 @@ class PipedRDDSuite extends SparkFunSuite with SharedSparkContext { } def testCommandAvailable(command: String): Boolean = { - val attempt = Try(Process(command).run().exitValue()) + val attempt = Try(Process(command).run(ProcessLogger(_ => ())).exitValue()) attempt.isSuccess && attempt.get == 0 } http://git-wip-us.apache.org/repos/asf/spark/blob/2d76cb11/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---------------------------------------------------------------------- diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala index 4ca882f..05d0687 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala @@ -19,7 +19,7 @@ package org.apache.spark.sql.hive.execution import java.sql.{Date, Timestamp} -import scala.sys.process.Process +import scala.sys.process.{Process, ProcessLogger} import scala.util.Try import org.apache.hadoop.fs.Path @@ -1788,7 +1788,7 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton { } def testCommandAvailable(command: String): Boolean = { - val attempt = Try(Process(command).run().exitValue()) + val attempt = Try(Process(command).run(ProcessLogger(_ => ())).exitValue()) attempt.isSuccess && attempt.get == 0 } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
