From 83b73dbd04ca1dfb6fedf7e94fc37064d98148a1 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 22 Jan 2024 19:31:38 +0100 Subject: [PATCH] Discard stdout / stderr of test Spark connect server if not isDebug --- .../scala/org/apache/spark/sql/test/RemoteSparkSession.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala b/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala index 3444e2d7544e0..8041c2a4a1328 100644 --- a/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala +++ b/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/test/RemoteSparkSession.scala @@ -83,6 +83,9 @@ object SparkConnectServerUtils { if (isDebug) { builder.redirectError(Redirect.INHERIT) builder.redirectOutput(Redirect.INHERIT) + } else { + builder.redirectError(Redirect.DISCARD) + builder.redirectOutput(Redirect.DISCARD) } val process = builder.start()