Fix test sources copy: delete target directory
This commit is contained in:
committed by
Pavel Punegov
parent
c1aa6514c5
commit
6bc47171ca
@@ -96,10 +96,8 @@ 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)
|
||||||
externalTestsDir.mkdirs()
|
externalTestsDir.mkdirs()
|
||||||
delete("${externalTestsDir.canonicalPath}/codegen")
|
|
||||||
delete("${externalTestsDir.canonicalPath}/compileKotlinAgainstKotlin")
|
|
||||||
|
|
||||||
copy {
|
copy {
|
||||||
configurations.update_tests.asFileTree.each {
|
configurations.update_tests.asFileTree.each {
|
||||||
from(zipTree(it))
|
from(zipTree(it))
|
||||||
@@ -110,9 +108,8 @@ def update_external_tests() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete(externalStdlibTestsDir)
|
||||||
externalStdlibTestsDir.mkdirs()
|
externalStdlibTestsDir.mkdirs()
|
||||||
delete("${externalStdlibTestsDir.canonicalPath}/common")
|
|
||||||
delete("${externalStdlibTestsDir.canonicalPath}/test")
|
|
||||||
copy {
|
copy {
|
||||||
configurations.update_tests.asFileTree.each {
|
configurations.update_tests.asFileTree.each {
|
||||||
from(zipTree(it))
|
from(zipTree(it))
|
||||||
|
|||||||
Reference in New Issue
Block a user