mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
[infra] Add unapproved failures test to builder status script
TBR: athom@google.com Change-Id: I086b26acb310e407cb4060db1e14d7a7c6c57cdc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129707 Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
parent
d3b40e59c6
commit
05e70d5b38
1 changed files with 6 additions and 1 deletions
|
@ -97,8 +97,13 @@ main(List<String> args) async {
|
|||
(document['fields']['success'] ?? const {})['booleanValue'];
|
||||
bool completed =
|
||||
(document['fields']['completed'] ?? const {})['booleanValue'];
|
||||
bool activeFailures =
|
||||
(document['fields']['active_failures'] ?? const {})['booleanValue'];
|
||||
|
||||
if (completed) {
|
||||
exit(success ? 0 : 1);
|
||||
print('Success: $success');
|
||||
if (activeFailures == true) print('Has active unapproved failures');
|
||||
exit((success && (activeFailures != true)) ? 0 : 1);
|
||||
}
|
||||
String chunks =
|
||||
(document['fields']['num_chunks'] ?? const {})['integerValue'];
|
||||
|
|
Loading…
Reference in a new issue