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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py

Issue 1766583002: Added update_test_expectations script to remove non-flaky test expectations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase after long break Created 4 years, 5 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/layout_tests/layout_package/bot_test_expectations.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
index b875bd2ee01a39a4f09db654318e75620839cd82..9bdbc3468f124d062fa61a4ff6a047c76ec6f9c1 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py
@@ -227,6 +227,22 @@ class BotTestExpectations(object):
unexpected_results_by_path[test_path] = sorted(map(exp_to_string, expectations))
return unexpected_results_by_path
+ def all_results_by_path(self):
+ results_by_path = {}
+ for test_path, entry in self.results_json.walk_results():
+ results_dict = entry.get(self.results_json.RESULTS_KEY, {})
+
+ result_types = self._all_types_in_results(results_dict)
+
+ if not result_types:
+ continue
+
+ # Distinct results as non-encoded strings.
+ result_strings = map(self.results_json.expectation_for_type, result_types)
+
+ results_by_path[test_path] = sorted(result_strings)
+ return results_by_path
+
def expectation_lines(self, only_ignore_very_flaky):
lines = []
for test_path, entry in self.results_json.walk_results():

Powered by Google App Engine
This is Rietveld 408576698