Skip to content

Commit 26ceb4f

Browse files
committed
more
1 parent 84b88c0 commit 26ceb4f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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") {

0 commit comments

Comments
 (0)