File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package org.apache.spark.sql.hive.execution
1919
2020import java .sql .{Date , Timestamp }
2121
22- import scala .sys .process .Process
22+ import scala .sys .process .{ Process , ProcessLogger }
2323import scala .util .Try
2424
2525import org .apache .hadoop .fs .Path
@@ -1788,7 +1788,13 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
17881788 }
17891789
17901790 def testCommandAvailable (command : String ): Boolean = {
1791- val attempt = Try (Process (command).run().exitValue())
1791+ val attempt = Try (Process (command).run(
1792+ new ProcessLogger {
1793+ override def out (s : => String ): Unit = ()
1794+ override def buffer [T ](f : => T ): T = f
1795+ override def err (s : => String ): Unit = ()
1796+ }
1797+ ).exitValue())
17921798 attempt.isSuccess && attempt.get == 0
17931799 }
17941800}
You can’t perform that action at this time.
0 commit comments