File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class Tester {
79
79
int testsExecuted = 0
80
80
int testsIgnored = 0
81
81
int filesUsed = 0
82
+ int numWarnings = 0
82
83
def failedTests = []
83
84
def observedFiles = []
84
85
@@ -129,10 +130,7 @@ class Tester {
129
130
// this indicates there are pipelines in different projects
130
131
// that will clash if combined.
131
132
if (observedFiles. contains(currentTestFilename)) {
132
- err(" Duplicate pipline ($currentTestFilename )" )
133
- recordFailedTest(" -" )
134
- separate()
135
- continue
133
+ warning(" Duplicate pipline ($currentTestFilename )" )
136
134
}
137
135
observedFiles. add(currentTestFilename)
138
136
@@ -225,6 +223,7 @@ class Tester {
225
223
println " Tests : " + sprintf (' %4d' , testsExecuted)
226
224
println " Tests ignored: " + sprintf (' %4d' , testsIgnored)
227
225
println " Tests failed : " + sprintf (' %4d' , failedTests. size())
226
+ println " Warnings : " + sprintf (' %4d' , numWarnings)
228
227
separate()
229
228
println " Passed: ${ testPassed.toString().toUpperCase()} "
230
229
@@ -317,6 +316,16 @@ class Tester {
317
316
318
317
}
319
318
319
+ /**
320
+ * Print a warning message (and counts it).
321
+ */
322
+ private warning (String msg ) {
323
+
324
+ println " WARNING: $msg "
325
+ numWarnings + = 1
326
+
327
+ }
328
+
320
329
/**
321
330
* Dumps the pipeline command's output, used when there's been an error.
322
331
*/
You can’t perform that action at this time.
0 commit comments