UI: report success if tests are flaky
Previously, Bazel reported failures if tests are flaky, even if the
overall status was a success.
Before:
INFO: Build completed, 1 test FAILED, 3 total actions
After:
INFO: Build completed successfully, 8 total actions
@@ -869,7 +869,8 @@ class UiStateTracker {
public synchronized void testSummary(TestSummary summary) {
completedTests++;
mostRecentTest = summary;
- if (summary.getStatus() != BlazeTestStatus.PASSED) {
+ if ((summary.getStatus() != BlazeTestStatus.PASSED)
+ && (summary.getStatus() != BlazeTestStatus.FLAKY)) {
failedTests++;
}
}
