Skip to content

Commit

Permalink
startup tests: add additional logging when setting profile in tests
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 66dccdc3575ed514f5b36a1b2d0727a4e604d6ac
  • Loading branch information
annaMarchenkoJetBrains authored and intellij-monorepo-bot committed Sep 6, 2023
1 parent 8f59e07 commit 3eef566
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.intellij.ide.starter.ide

import com.intellij.ide.starter.buildTool.BuildTool
import com.intellij.ide.starter.bus.StarterListener
import com.intellij.ide.starter.bus.subscribe
import com.intellij.ide.starter.ci.CIServer
import com.intellij.ide.starter.coroutine.perTestSupervisorScope
import com.intellij.ide.starter.di.di
Expand Down Expand Up @@ -210,6 +208,7 @@ class IDETestContext(
fun collectImportProjectPerfMetrics() = applyVMOptionsPatch {
addSystemProperty("idea.collect.project.import.performance", true)
}

fun enableVerboseOpenTelemetry() = applyVMOptionsPatch {
addSystemProperty("idea.diagnostic.opentelemetry.verbose", true)
}
Expand Down Expand Up @@ -251,6 +250,7 @@ class IDETestContext(
* Setup profiler injection
*/
fun setProfiler(profilerType: ProfilerType): IDETestContext {
logOutput("Setting profiler: ${profilerType}")
this.profilerType = profilerType
return this
}
Expand Down Expand Up @@ -570,7 +570,8 @@ class IDETestContext(
}
}
)
} finally {
}
finally {
System.clearProperty("DO_NOT_REPORT_ERRORS")
}
if (cleanDirs)
Expand Down

0 comments on commit 3eef566

Please sign in to comment.