GitHub user heary-cao opened a pull request: https://github.com/apache/spark/pull/23151
[SPARK-26180][CORE][TEST] Add a withCreateTempDir function to the SparkCore test case ## What changes were proposed in this pull request? Currently, the common `withTempDir` function is used in Spark SQL test cases. To handle `val dir = Utils. createTempDir()` and `Utils. deleteRecursively (dir)`. Unfortunately, the `withTempDir` function cannot be used in the Spark Core test case. This PR adds a common `withCreateTempDir` function to clean up SparkCore test cases. thanks. ## How was this patch tested? N / A You can merge this pull request into a Git repository by running: $ git pull https://github.com/heary-cao/spark withCreateTempDir Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/23151.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #23151 ---- commit d29d4ece73dd17ee3ba5e1e85e2d35096f524810 Author: caoxuewen <cao.xuewen@...> Date: 2018-11-27T03:00:08Z Add a withCreateTempDir function to the SparkCore test case ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org