From 8e6aa7ad857ca1619bdc1c49c998e976b1f73c10 Mon Sep 17 00:00:00 2001 From: Alex Beggs Date: Mon, 8 Feb 2021 14:00:46 -0500 Subject: [PATCH] Cleanup generated directory from tests - Removes the generated directory 'home with spaces' after the test is executed Signed-off-by: Alex Beggs --- .../org/gradle/profiler/ProfilerIntegrationTest.groovy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/groovy/org/gradle/profiler/ProfilerIntegrationTest.groovy b/src/test/groovy/org/gradle/profiler/ProfilerIntegrationTest.groovy index 4914ad09..1539ed8e 100644 --- a/src/test/groovy/org/gradle/profiler/ProfilerIntegrationTest.groovy +++ b/src/test/groovy/org/gradle/profiler/ProfilerIntegrationTest.groovy @@ -1066,7 +1066,11 @@ println "User home: \$gradle.gradleUserHomeDir" "--benchmark", "--gradle-user-home", "home with spaces", "help") then: - logFile.find("User home: " + new File("home with spaces").absolutePath) + def homeWithSpaces = new File("home with spaces") + logFile.find("User home: " + homeWithSpaces.absolutePath) + + cleanup: + homeWithSpaces.deleteDir() } @Requires({ !OperatingSystem.windows })