baa2c56e2d
Otherwise, path will be set to the root project. Given that we provide task names in relative form rather than absolute, that will lead to launching this task in all subprojects (e.g. task 'jvmTest'). This might be a huge issue, because when we create run configuration for specific test method/class, we pass test filter as well. This test filter will execute in all projects with matched test tasks, so if some other subproject has similarly-named test task, but doesn't have a suitable tests for that filter, the whole build will fail. Note that the ideal fix would involve using fully-qualified task names: the current approach might lead to isses in advanced scenarious (e.g. when user selects several test files from different modules -- then, we won't be able to find one exact project path for the whole test run) ^KT-35038 Fixed