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 91344b2d948b48c5f28f0dfeba5b1ef305f0b2f2..7a4e5dadaeba49624d604f683033e49379f63deb 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 |
@@ -220,6 +220,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) |
qyearsley
2016/03/07 19:09:53
What are the possible result strings that are retu
bokan
2016/03/07 22:59:15
The result codes come from the bot so I'm not sure
|
+ |
+ 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(): |