OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 import 'util.dart'; | 7 import 'util.dart'; |
8 | 8 |
9 import 'buildbot_structures.dart'; | 9 import 'buildbot_structures.dart'; |
10 import 'cache.dart'; | 10 import 'cache.dart'; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 results.add(status); | 96 results.add(status); |
97 failures.add(new TestFailure(buildUri, currentFailure)); | 97 failures.add(new TestFailure(buildUri, currentFailure)); |
98 currentFailure = null; | 98 currentFailure = null; |
99 } | 99 } |
100 } else { | 100 } else { |
101 currentFailure.add(line); | 101 currentFailure.add(line); |
102 } | 102 } |
103 } else if (line.startsWith('FAILED:')) { | 103 } else if (line.startsWith('FAILED:')) { |
104 currentFailure = <String>[]; | 104 currentFailure = <String>[]; |
105 currentFailure.add(line); | 105 currentFailure.add(line); |
| 106 } else if (line.startsWith('Done ')) { |
| 107 TestStatus status = parseTestStatus(line); |
| 108 if (status != null) { |
| 109 results.add(status); |
| 110 } |
106 } | 111 } |
107 if (line.startsWith('--- Total time:')) { | 112 if (line.startsWith('--- Total time:')) { |
108 parsingTimingBlock = true; | 113 parsingTimingBlock = true; |
109 } else if (parsingTimingBlock) { | 114 } else if (parsingTimingBlock) { |
110 if (line.startsWith('0:')) { | 115 if (line.startsWith('0:')) { |
111 timings.addAll(parseTimings(buildUri, line)); | 116 timings.addAll(parseTimings(buildUri, line)); |
112 } else { | 117 } else { |
113 parsingTimingBlock = false; | 118 parsingTimingBlock = false; |
114 } | 119 } |
115 } | 120 } |
(...skipping 17 matching lines...) Expand all Loading... |
133 String archName = name.substring(0, slashPos); | 138 String archName = name.substring(0, slashPos); |
134 String testName = name.substring(slashPos + 1); | 139 String testName = name.substring(slashPos + 1); |
135 timings.add(new Timing( | 140 timings.add(new Timing( |
136 uri, | 141 uri, |
137 time, | 142 time, |
138 new TestStep( | 143 new TestStep( |
139 stepName, new TestConfiguration(configName, archName, testName)))); | 144 stepName, new TestConfiguration(configName, archName, testName)))); |
140 } | 145 } |
141 return timings; | 146 return timings; |
142 } | 147 } |
OLD | NEW |