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

Unified Diff: appengine/findit/waterfall/test_info.py

Issue 2438673004: [Findit] Post analysis results of flakes to bug filed by chromium-try-flakes. (Closed)
Patch Set: Add a config flag to enable/disable updating monorail bug. Created 4 years, 1 month 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
« no previous file with comments | « appengine/findit/waterfall/test/post_comment_to_bug_pipeline_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/test_info.py
diff --git a/appengine/findit/waterfall/test_info.py b/appengine/findit/waterfall/test_info.py
new file mode 100644
index 0000000000000000000000000000000000000000..81c954e5bca0618acca421cda19ac39efe9b3c32
--- /dev/null
+++ b/appengine/findit/waterfall/test_info.py
@@ -0,0 +1,27 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+class TestInfo(object): # pragma: no cover.
+ """Represents a test."""
+
+ def __init__(
+ self, master_name, builder_name, build_number, step_name, test_name):
+ self.master_name = master_name
+ self.builder_name = builder_name
+ self.build_number = build_number
+ self.step_name = step_name
+ self.test_name = test_name
+
+ def __repr__(self):
+ return '%s/%s/%s/%s/%s' % (
+ self.master_name, self.builder_name, self.build_number,
+ self.step_name, self.test_name)
+
+ def __eq__(self, other):
+ return (isinstance(other, self.__class__) and
+ self.master_name == other.master_name and
+ self.builder_name == other.builder_name and
+ self.build_number == other.build_number and
+ self.step_name == other.step_name and
+ self.test_name == other.test_name)
« no previous file with comments | « appengine/findit/waterfall/test/post_comment_to_bug_pipeline_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698