From 16adf383a50de2e6494f0185c47a934294f839be Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 15 May 2018 15:49:38 +0300 Subject: [PATCH] Use single test project for all tests, instead of copying current --- .../org/jetbrains/kotlin/idea/perf/AllKotlinTest.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/AllKotlinTest.kt b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/AllKotlinTest.kt index c0c133fa2ad..43ff8666917 100644 --- a/idea/performanceTests/org/jetbrains/kotlin/idea/perf/AllKotlinTest.kt +++ b/idea/performanceTests/org/jetbrains/kotlin/idea/perf/AllKotlinTest.kt @@ -25,15 +25,14 @@ import java.io.StringWriter abstract class AllKotlinTest : DaemonAnalyzerTestCase() { - private val rootProjectFile: File = File(".").absoluteFile + private val rootProjectFile: File = File("../perfTestProject").absoluteFile private val statsFile: File = File("build/stats.csv").absoluteFile - private val tmp by lazy { createTempDirectory() } + private val tmp = rootProjectFile override fun setUpProject() { - println("Copying project to $tmp") + println("Using project in $tmp") - rootProjectFile.copyRecursively(tmp) tmp.resolve(".idea").deleteRecursively() (ApplicationManager.getApplication() as ApplicationEx).doNotSave()