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

Unified Diff: appengine/findit/waterfall/test/try_job_util_test.py

Issue 1924823003: [Findit] Use heuristic analysis result for test try jobs(Findit side). (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 8 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
« no previous file with comments | « appengine/findit/waterfall/schedule_try_job_pipeline.py ('k') | appengine/findit/waterfall/try_job_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/test/try_job_util_test.py
diff --git a/appengine/findit/waterfall/test/try_job_util_test.py b/appengine/findit/waterfall/test/try_job_util_test.py
index 65f58afd018607153b19bd295ca23bac3e0c5073..0eb496a6926286b0ed49ea35801e3a7da735e779 100644
--- a/appengine/findit/waterfall/test/try_job_util_test.py
+++ b/appengine/findit/waterfall/test/try_job_util_test.py
@@ -408,7 +408,7 @@ class TryJobUtilTest(wf_testcase.WaterfallTestCase):
signals, 'master1', 'builder1'),
['b.o'])
- def testGetSuspectsForCompileFailureFromHeuristicResult(self):
+ def testGetSuspectsFromHeuristicResult(self):
heuristic_result = {
'failures': [
{
@@ -423,12 +423,19 @@ class TryJobUtilTest(wf_testcase.WaterfallTestCase):
],
},
{
- 'step_name': 'steps'
+ 'step_name': 'steps',
+ 'suspected_cls': [
+ {
+ 'revision': 'r1',
+ },
+ {
+ 'revision': 'r2',
+ },
+ ],
stgao 2016/04/28 17:37:49 May consider adding a separate testcase for test f
chanli 2016/04/28 22:13:14 Done.
},
]
}
expected_suspected_revisions = ['r1', 'r2']
self.assertEqual(
expected_suspected_revisions,
- try_job_util._GetSuspectsForCompileFailureFromHeuristicResult(
- heuristic_result))
+ try_job_util._GetSuspectsFromHeuristicResult(heuristic_result))
« no previous file with comments | « appengine/findit/waterfall/schedule_try_job_pipeline.py ('k') | appengine/findit/waterfall/try_job_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698