Index: tools/gen_bench_expectations_from_codereview.py |
diff --git a/tools/gen_bench_expectations_from_codereview.py b/tools/gen_bench_expectations_from_codereview.py |
index f29c6526f57a25ea00bc29a01d728fc85ebd1908..3d40aa67eb04d3dd4d87a40305e9ebd4ec648c5c 100644 |
--- a/tools/gen_bench_expectations_from_codereview.py |
+++ b/tools/gen_bench_expectations_from_codereview.py |
@@ -41,8 +41,11 @@ def find_all_builds(codereview_url): |
for builder, data in results.iteritems(): |
if builder.startswith('Perf'): |
build_num = data.url.split('/')[-1] if data.url else None |
- try_builds.append(TryBuild(builder, build_num, |
- data.status != 'pending')) |
+ is_finished = (data.status not in ('pending', 'try-pending') and |
+ build_num is not None) |
+ try_builds.append(TryBuild(builder_name=builder, |
+ build_number=build_num, |
+ is_finished=is_finished)) |
return try_builds |