File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ if (gradle.startParameter.taskNames.contains("listTestsInPartition")) {
7676 throw GradleException (" Invalid test partition" )
7777 }
7878
79- val partitionTasks = ArrayList <Test >()
79+ val partitionTaskPaths = ArrayList <String >()
8080 var testPartitionCounter = 0
8181 subprojects {
8282 // relying on predictable ordering of subprojects
@@ -85,15 +85,14 @@ if (gradle.startParameter.taskNames.contains("listTestsInPartition")) {
8585 val enabled = testPartitionCounter++ % 4 == testPartition
8686 if (enabled) {
8787 tasks.withType<Test >().configureEach {
88- partitionTasks .add(this )
88+ partitionTaskPaths .add(path )
8989 }
9090 }
9191 }
9292
9393 doLast {
9494 File (" test-tasks.txt" ).printWriter().use { writer ->
95- partitionTasks.forEach { task ->
96- var taskPath = task.project.path + " :" + task.name
95+ partitionTaskPaths.forEach { taskPath ->
9796 // smoke tests are run separately
9897 // :instrumentation:test runs all instrumentation tests
9998 if (taskPath != " :smoke-tests:test" && taskPath != " :instrumentation:test" ) {
You can’t perform that action at this time.
0 commit comments