Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py

Issue 2678773003: Make wpt-import --auto-update pass if the issue is closed after CQ. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
index a47a938188ba81a404b3d57073a0ee8743513a0a..4522f249c96e5d08be9fc167fa80d3580da32c4d 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
@@ -69,6 +69,10 @@ class GitCL(object):
self._host.filesystem.remove(results_path)
return json.loads(contents)
+ def is_closed(self):
+ out = self.run(['status' '--field', 'status'])
+ return out.strip() == 'closed'
+
@staticmethod
def all_jobs_finished(try_results):
return all(r.get('status') == 'COMPLETED' for r in try_results)

Powered by Google App Engine
This is Rietveld 408576698