IJI-347 Simplify finding module
authorIlia Shulgin <ilia.shulgin@jetbrains.com>
Thu, 13 Aug 2020 20:07:39 +0000 (23:07 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 13 Aug 2020 20:14:51 +0000 (20:14 +0000)
GitOrigin-RevId: cd7e589637d2aa6d9e39c3fea1810b3136febbcd

platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/TestingTasksImpl.groovy

index 8f0ddfcf08e1f05091f605c32799e320bc0fade7..898b557f4b98566e88ce4914b459a60497fcde54 100644 (file)
@@ -464,7 +464,7 @@ class TestingTasksImpl extends TestingTasks {
       }
 
       if (isRunningInBatchMode()) {
-        def mainModuleTestsOutput = context.getModuleTestsOutputPath(context.project.modules.find { it.name == mainModule })
+        def mainModuleTestsOutput = context.getModuleTestsOutputPath(context.findModule(mainModule))
         batchtest {
           fileset dir: mainModuleTestsOutput, includes: options.batchTestIncludes
         }