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

Unified Diff: Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py

Issue 301853003: Make update-flaky-tests to work again and support all bots (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed use of operator.attrgetter Created 6 years, 7 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: Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py
diff --git a/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py b/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py
index 1456d5f17723b6c1c752a933dd980a5648f7ad54..a95352398d11ea833a543010dbbcb5944cbb36d5 100644
--- a/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py
+++ b/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py
@@ -42,7 +42,7 @@ class BotTestExpectationsTest(unittest.TestCase):
def _assert_is_flaky(self, results_string, should_be_flaky):
results_json = self._results_json_from_test_data({})
- expectations = bot_test_expectations.BotTestExpectations(results_json)
+ expectations = bot_test_expectations.BotTestExpectations(results_json, set('test'))
length_encoded = self._results_from_string(results_string)['results']
num_actual_results = len(expectations._flaky_types_in_results(length_encoded, only_ignore_very_flaky=True))
if should_be_flaky:
@@ -80,12 +80,12 @@ class BotTestExpectationsTest(unittest.TestCase):
def _assert_expectations(self, test_data, expectations_string, only_ignore_very_flaky):
results_json = self._results_json_from_test_data(test_data)
- expectations = bot_test_expectations.BotTestExpectations(results_json)
+ expectations = bot_test_expectations.BotTestExpectations(results_json, set('test'))
self.assertEqual(expectations.flakes_by_path(only_ignore_very_flaky), expectations_string)
def _assert_unexpected_results(self, test_data, expectations_string):
results_json = self._results_json_from_test_data(test_data)
- expectations = bot_test_expectations.BotTestExpectations(results_json)
+ expectations = bot_test_expectations.BotTestExpectations(results_json, set('test'))
self.assertEqual(expectations.unexpected_results_by_path(), expectations_string)
def test_basic(self):

Powered by Google App Engine
This is Rietveld 408576698