From b7d046c4f86fd5101fdf2fac113f6dbbed75a89a Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Thu, 26 Jan 2017 00:10:42 +0300 Subject: [PATCH] PY-22378: New test runners: preserve old configurations --- .../PyUniversalTestLegacyInterop.kt | 18 ++++++++++-------- .../testing/universalTests/PyUniversalTests.kt | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTestLegacyInterop.kt b/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTestLegacyInterop.kt index e29c299faa73..b12b2b94a16c 100644 --- a/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTestLegacyInterop.kt +++ b/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTestLegacyInterop.kt @@ -113,6 +113,7 @@ class PyUniversalTestLegacyConfigurationAdapter + private val project = newConfig.project /** * Does configuration contain legacy information or was it created as new config? @@ -120,7 +121,6 @@ class PyUniversalTestLegacyConfigurationAdapter 2 || keywordsList.find { it.contains(" ") } != null) { //Give up with interpreting newConfig.keywords = oldKeywords diff --git a/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTests.kt b/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTests.kt index a7af9b43b4ad..a2c96929816b 100644 --- a/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTests.kt +++ b/python/src/com/jetbrains/python/testing/universalTests/PyUniversalTests.kt @@ -243,6 +243,7 @@ abstract class PyUniversalTestConfiguration(project: Project, override fun writeExternal(element: Element) { // Write legacy config to preserve it legacyConfigurationAdapter.writeExternal(element) + // Super is called after to overwrite legacy settings with new one super.writeExternal(element) val gson = Gson()