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

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

Issue 2232613002: Chop off platform name from step name (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 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: 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 6fd48a4a05f24ec9c11af78bbc33f019d6983086..e57f7ff21819687d8ff2f0ed28966df4e4c2559f 100644
--- a/appengine/findit/waterfall/test/try_job_util_test.py
+++ b/appengine/findit/waterfall/test/try_job_util_test.py
@@ -1193,6 +1193,17 @@ class TryJobUtilTest(wf_testcase.WaterfallTestCase):
signals, 'master1', 'builder1'),
['b.o'])
+ def testChopOffPlatformFromStepName(self):
+ test_pairs = [
+ ('a_tests on Platform', 'a_tests on '),
lijeffrey 2016/08/10 18:48:08 so why should the ' on ' be left in?
lijeffrey 2016/08/10 18:48:08 it's easier just to make 1 for each of these self
josiahk 2016/08/10 21:22:34 So that 'super_tests on Windows' doesn't match 'su
josiahk 2016/08/10 21:22:34 Done.
+ ('a_tests on Other-Platform', 'a_tests on '),
+ ('b_tests', 'b_tests')]
+
+ for test_pair in test_pairs:
+ self.assertEqual(
+ try_job_util._ChopOffPlatformFromStepName(test_pair[0]),
+ test_pair[1])
+
def testGetSuspectedCLsWithFailuresNoHeuristicResult(self):
heuristic_result = None
expected_suspected_revisions = []
« no previous file with comments | « no previous file | appengine/findit/waterfall/try_job_util.py » ('j') | appengine/findit/waterfall/try_job_util.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698