[Native][tests] Use new Gradle property for cache mode

This commit is contained in:
Dmitriy Dolovov
2022-01-26 14:25:58 +03:00
parent 18cd07ea5f
commit bfc7e3d825
6 changed files with 30 additions and 27 deletions
+3 -1
View File
@@ -53,7 +53,8 @@ enum class TestProperty(shortName: String) {
MEMORY_MODEL("memoryModel"),
USE_THREAD_STATE_CHECKER("useThreadStateChecker"),
GC_TYPE("gcType"),
USE_CACHE("useCache"),
USE_CACHE("useCache"), // TODO: legacy, need to remove it
CACHE_MODE("cacheMode"),
EXECUTION_TIMEOUT("executionTimeout");
private val propertyName = "kotlin.internal.native.test.$shortName"
@@ -119,6 +120,7 @@ fun nativeTest(taskName: String, vararg tags: String) = projectTest(taskName, jU
TestProperty.USE_THREAD_STATE_CHECKER.setUpFromGradleProperty(this)
TestProperty.GC_TYPE.setUpFromGradleProperty(this)
TestProperty.USE_CACHE.setUpFromGradleProperty(this)
TestProperty.CACHE_MODE.setUpFromGradleProperty(this)
TestProperty.EXECUTION_TIMEOUT.setUpFromGradleProperty(this)
ignoreFailures = true // Don't fail Gradle task if there are failed tests. Let the subsequent tasks to run as well.