[Native][tests] Don't track used memory when running in TeamCity
This commit is contained in:
committed by
Space Team
parent
6f249ab615
commit
42a8b28337
+2
-1
@@ -12,7 +12,8 @@ import org.jetbrains.kotlin.test.services.JUnit5Assertions.fail
|
||||
|
||||
internal enum class ProcessLevelProperty(shortName: String) {
|
||||
KOTLIN_NATIVE_HOME("nativeHome"),
|
||||
COMPILER_CLASSPATH("compilerClasspath");
|
||||
COMPILER_CLASSPATH("compilerClasspath"),
|
||||
TEAMCITY("teamcity");
|
||||
|
||||
private val propertyName = fullPropertyName(shortName)
|
||||
|
||||
|
||||
+3
@@ -112,6 +112,9 @@ private object NativeTestSupport {
|
||||
}
|
||||
|
||||
private fun ExtensionContext.setUpMemoryTracking() {
|
||||
if (ProcessLevelProperty.TEAMCITY.readValue().toBoolean())
|
||||
return // Don't track memory when running at TeamCity. It tracks memory by itself.
|
||||
|
||||
TestLogger.initialize() // Initialize special logging (directly to Gradle's console).
|
||||
|
||||
val gradleTaskName = EnvironmentVariable.GRADLE_TASK_NAME.readValue()
|
||||
|
||||
Reference in New Issue
Block a user