Use environment variable for getting TEAMCITY_VERSION
This commit is contained in:
committed by
TeamCityServer
parent
02e37dceeb
commit
3757bd0c1f
+1
-1
@@ -12,7 +12,7 @@ import java.io.File
|
|||||||
|
|
||||||
abstract class FirIdenticalCheckerHelper(private val testServices: TestServices) {
|
abstract class FirIdenticalCheckerHelper(private val testServices: TestServices) {
|
||||||
companion object {
|
companion object {
|
||||||
private val isTeamCityBuild: Boolean = System.getProperty("TEAMCITY_VERSION") != null
|
private val isTeamCityBuild: Boolean = System.getenv("TEAMCITY_VERSION") != null
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract fun getClassicFileToCompare(testDataFile: File): File?
|
abstract fun getClassicFileToCompare(testDataFile: File): File?
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.io.IOException
|
|||||||
import kotlin.io.path.*
|
import kotlin.io.path.*
|
||||||
|
|
||||||
object GeneratorsFileUtil {
|
object GeneratorsFileUtil {
|
||||||
val isTeamCityBuild: Boolean = System.getProperty("TEAMCITY_VERSION") != null
|
val isTeamCityBuild: Boolean = System.getenv("TEAMCITY_VERSION") != null
|
||||||
|
|
||||||
@OptIn(ExperimentalPathApi::class)
|
@OptIn(ExperimentalPathApi::class)
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ object IgnoreTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val isTeamCityBuild: Boolean
|
private val isTeamCityBuild: Boolean
|
||||||
get() = System.getProperty("TEAMCITY_VERSION") != null
|
get() = System.getenv("TEAMCITY_VERSION") != null
|
||||||
|| KtUsefulTestCase.IS_UNDER_TEAMCITY
|
|| KtUsefulTestCase.IS_UNDER_TEAMCITY
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user