Fix for case if folder was deleted or not created because if failure (#3190)

This commit is contained in:
LepilkinaElena
2019-07-15 17:06:23 +03:00
committed by GitHub
parent b5e3de324d
commit 5ee8c27f1d
+6 -2
View File
@@ -138,7 +138,9 @@ task installTestLibrary(type: KlibInstall) {
// Gets tests from the same Kotlin compiler build // Gets tests from the same Kotlin compiler build
def update_external_tests() { def update_external_tests() {
// Copy only used tests into the test directory. // Copy only used tests into the test directory.
delete(externalTestsDir) if (externalTestsDir.exists()) {
delete(externalTestsDir)
}
externalTestsDir.mkdirs() externalTestsDir.mkdirs()
def compilerTestsFiles = configurations.update_tests.asFileTree def compilerTestsFiles = configurations.update_tests.asFileTree
@@ -153,7 +155,9 @@ def update_external_tests() {
} }
} }
delete(externalStdlibTestsDir) if (externalStdlibTestsDir.exists()) {
delete(externalStdlibTestsDir)
}
externalStdlibTestsDir.mkdirs() externalStdlibTestsDir.mkdirs()
def stdlibTestsFiles = configurations.update_stdlib_tests.asFileTree def stdlibTestsFiles = configurations.update_stdlib_tests.asFileTree
copy { copy {