[Test] Support various jdk targets in test infrastructure

This commit is contained in:
Dmitriy Novozhilov
2021-01-19 13:01:39 +03:00
parent 93741ced5c
commit 09ec3f6eaf
3 changed files with 41 additions and 26 deletions
@@ -35,7 +35,7 @@ interface CustomJdkTestLauncher {
fun doTestWithJdk11(mainClass: Class<*>, arg: String) {
if (isJava9OrLater()) return
KtTestUtil.getJdk11Home()?.let { doTestCustomJdk(mainClass, arg, it) }
KtTestUtil.getJdk11Home().let { doTestCustomJdk(mainClass, arg, it) }
}
private fun doTestCustomJdk(mainClass: Class<*>, arg: String, javaHome: File) {