philwalk commented on code in PR #38228:
URL: https://github.com/apache/spark/pull/38228#discussion_r1002764301
##########
project/SparkBuild.scala:
##########
@@ -599,11 +599,18 @@ object SparkParallelTestGrouping {
object Core {
import scala.sys.process.Process
+ def buildenv = Process(Seq("uname")).!!.trim.replaceFirst("[^A-Za-z0-9].*",
"").toLowerCase
+ def bashpath = Process(Seq("where",
"bash")).!!.split("[\r\n]+").head.replace('\\', '/')
Review Comment:
I originally had it inline, but it was not as readable, so I pulled it out.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]