Skip to content

Commit

Permalink
Cleanup generated directory from tests
Browse files Browse the repository at this point in the history
- Removes the generated directory 'home with spaces' after the test is executed

Signed-off-by: Alex Beggs <[email protected]>
  • Loading branch information
AlexBeggs committed Feb 8, 2021
1 parent 394d202 commit 8e6aa7a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 8e6aa7a

Please sign in to comment.