update main-with-bazel from master branch
This commit is contained in:
@@ -395,10 +395,12 @@ func main() {
|
||||
|
||||
testOutput := testresult.NewResults()
|
||||
var failed, skipped []test
|
||||
var total int
|
||||
for testResult := range results {
|
||||
test := testResult.Test
|
||||
args := test.Cmd
|
||||
|
||||
total++
|
||||
if testResult.Error == errTestSkipped {
|
||||
fmt.Printf("%s\n", test.longName())
|
||||
fmt.Printf("%s was skipped\n", args[0])
|
||||
@@ -427,14 +429,14 @@ func main() {
|
||||
}
|
||||
|
||||
if len(skipped) > 0 {
|
||||
fmt.Printf("\n%d of %d tests were skipped:\n", len(skipped), len(testCases))
|
||||
fmt.Printf("\n%d of %d tests were skipped:\n", len(skipped), total)
|
||||
for _, test := range skipped {
|
||||
fmt.Printf("\t%s\n", test.shortName())
|
||||
}
|
||||
}
|
||||
|
||||
if len(failed) > 0 {
|
||||
fmt.Printf("\n%d of %d tests failed:\n", len(failed), len(testCases))
|
||||
fmt.Printf("\n%d of %d tests failed:\n", len(failed), total)
|
||||
for _, test := range failed {
|
||||
fmt.Printf("\t%s\n", test.shortName())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user