Skip to content

Commit

Permalink
[SPARK-17276][CORE][TEST] Stop env params output on Jenkins job page
Browse files Browse the repository at this point in the history
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.

![screen shot 2016-08-26 at 10 52 07 pm](https://cloud.githubusercontent.com/assets/3925641/18025581/b8d567ba-6be2-11e6-9eeb-6aec223f1730.png)

## How was this patch tested?

Tested manually on local laptop.

Author: Xin Ren <[email protected]>

Closes apache#14848 from keypointt/SPARK-17276.
  • Loading branch information
keypointt authored and srowen committed Aug 30, 2016
1 parent bca79c8 commit 2d76cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}

0 comments on commit 2d76cb1

Please sign in to comment.