Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}