File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ if (project.findProperty("skipTests") as String? == "true") {
49
49
}
50
50
}
51
51
52
- if (gradle.startParameter.taskNames.any { it.equals (" listTestsInPartition" ) } ) {
52
+ if (gradle.startParameter.taskNames.contains (" listTestsInPartition" )) {
53
53
tasks {
54
54
val listTestsInPartition by registering {
55
55
group = " Help"
Original file line number Diff line number Diff line change @@ -65,9 +65,11 @@ if (useScansGradleCom) {
65
65
fileFingerprints = true
66
66
}
67
67
68
- buildScanPublished {
69
- File (" build-scan.txt" ).printWriter().use { writer ->
70
- writer.println (buildScanUri)
68
+ if (! gradle.startParameter.taskNames.contains(" listTestsInPartition" )) {
69
+ buildScanPublished {
70
+ File (" build-scan.txt" ).printWriter().use { writer ->
71
+ writer.println (buildScanUri)
72
+ }
71
73
}
72
74
}
73
75
}
@@ -89,9 +91,11 @@ if (useScansGradleCom) {
89
91
value(" Smoke test suite" , it)
90
92
}
91
93
92
- buildScanPublished {
93
- File (" build-scan.txt" ).printWriter().use { writer ->
94
- writer.println (buildScanUri)
94
+ if (! gradle.startParameter.taskNames.contains(" listTestsInPartition" )) {
95
+ buildScanPublished {
96
+ File (" build-scan.txt" ).printWriter().use { writer ->
97
+ writer.println (buildScanUri)
98
+ }
95
99
}
96
100
}
97
101
}
You can’t perform that action at this time.
0 commit comments