OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Helper functions for the layout test analyzer.""" | 5 """Helper functions for the layout test analyzer.""" |
6 | 6 |
7 from datetime import datetime | 7 from datetime import datetime |
8 from email.mime.multipart import MIMEMultipart | 8 from email.mime.multipart import MIMEMultipart |
9 from email.mime.text import MIMEText | 9 from email.mime.text import MIMEText |
10 import fileinput | 10 import fileinput |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 refer to |test_expectaions.ALL_TE_KEYWORDS|). | 56 refer to |test_expectaions.ALL_TE_KEYWORDS|). |
57 """ | 57 """ |
58 self.result_map = {} | 58 self.result_map = {} |
59 self.result_map['whole'] = {} | 59 self.result_map['whole'] = {} |
60 self.result_map['skip'] = {} | 60 self.result_map['skip'] = {} |
61 self.result_map['nonskip'] = {} | 61 self.result_map['nonskip'] = {} |
62 if test_info_map: | 62 if test_info_map: |
63 for (k, value) in test_info_map.iteritems(): | 63 for (k, value) in test_info_map.iteritems(): |
64 self.result_map['whole'][k] = value | 64 self.result_map['whole'][k] = value |
65 if 'te_info' in value: | 65 if 'te_info' in value: |
66 if any([True for x in value['te_info'] if 'SKIP' in x]): | 66 if any([True for x in value['te_info'] |
67 if 'SKIP' in x or 'SLOW' in x]): | |
Ami GONE FROM CHROMIUM
2012/08/08 20:32:27
A SLOW line that has anything to the right of the
DaleCurtis
2012/08/08 20:53:54
Just PASS? Or PASS + modifiers? There are several
Ami GONE FROM CHROMIUM
2012/08/08 20:57:09
If there's anything other than PASS to the right o
DaleCurtis
2012/08/08 23:47:25
Done. Although no tests now qualify for SLOW curre
| |
67 self.result_map['skip'][k] = value | 68 self.result_map['skip'][k] = value |
68 else: | 69 else: |
69 self.result_map['nonskip'][k] = value | 70 self.result_map['nonskip'][k] = value |
70 | 71 |
71 @staticmethod | 72 @staticmethod |
72 def GetDiffString(diff_map_element, type_str): | 73 def GetDiffString(diff_map_element, type_str): |
73 """Get difference string out of diff map element. | 74 """Get difference string out of diff map element. |
74 | 75 |
75 The difference string shows difference between two analyzer results | 76 The difference string shows difference between two analyzer results |
76 (for example, a result for now and a result for sometime in the past) | 77 (for example, a result for now and a result for sometime in the past) |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
590 list2 = map2[name]['te_info'] | 591 list2 = map2[name]['te_info'] |
591 te_diff = [item for item in list1 if not item in list2] | 592 te_diff = [item for item in list1 if not item in list2] |
592 if te_diff: | 593 if te_diff: |
593 name_list.append((name, te_diff)) | 594 name_list.append((name, te_diff)) |
594 else: | 595 else: |
595 name_list.append((name, value1)) | 596 name_list.append((name, value1)) |
596 return name_list | 597 return name_list |
597 | 598 |
598 return (GetDiffBetweenMapsHelper(map1, map2, lookIntoTestExpectationInfo), | 599 return (GetDiffBetweenMapsHelper(map1, map2, lookIntoTestExpectationInfo), |
599 GetDiffBetweenMapsHelper(map2, map1, lookIntoTestExpectationInfo)) | 600 GetDiffBetweenMapsHelper(map2, map1, lookIntoTestExpectationInfo)) |
OLD | NEW |