mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Improve status file update tool "fix similar tests" option
R=athom@google.com Change-Id: I0a26e929b06b7c737b0f233839aca4551ec1d0dc Reviewed-on: https://dart-review.googlesource.com/39020 Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
parent
59f272827e
commit
ffc478f6fa
1 changed files with 4 additions and 1 deletions
|
@ -113,6 +113,7 @@ class FixFailingTest extends WorkflowStep<List<FailingTest>> {
|
|||
}
|
||||
|
||||
Future<WorkflowAction> _fixAllSimilarTests() async {
|
||||
var unhandledTests = <FailingTest>[];
|
||||
for (FailingTest similarTest in _remainingTests) {
|
||||
_currentWorkingItem = new FixWorkingItem(similarTest.result.name,
|
||||
similarTest, _statusExpectations, _lastComment, this._customSections);
|
||||
|
@ -141,9 +142,11 @@ class FixFailingTest extends WorkflowStep<List<FailingTest>> {
|
|||
var realLast = _lastWorkingItem;
|
||||
await fixFailingTest(); // Sets _lastWorkingItem to _currentWorkingItem
|
||||
_lastWorkingItem = realLast; // Might not be needed
|
||||
} else {
|
||||
unhandledTests.add(similarTest);
|
||||
}
|
||||
}
|
||||
return new NavigateStepWorkflowAction(this, const <FailingTest>[]);
|
||||
return new NavigateStepWorkflowAction(this, unhandledTests);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue