OLD | NEW |
1 #!/usr/bin/python | |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # 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 |
4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
5 | 4 |
6 """A module for manipulating trend graph with analyzer result history.""" | 5 """A module for manipulating trend graph with analyzer result history.""" |
7 | 6 |
8 import os | 7 import os |
9 import sys | 8 import sys |
10 | 9 |
11 import layouttest_analyzer_helpers | 10 import layouttest_analyzer_helpers |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 joined_str = '%s,%s,%s' % ( | 68 joined_str = '%s,%s,%s' % ( |
70 str(data_map['passingrate'][0]), data_map['nonskip'][1], | 69 str(data_map['passingrate'][0]), data_map['nonskip'][1], |
71 data_map['nonskip'][2]) | 70 data_map['nonskip'][2]) |
72 new_line_for_passingrate = ' [new Date(%s),%s],\n' % ( | 71 new_line_for_passingrate = ' [new Date(%s),%s],\n' % ( |
73 datetime_string, joined_str) | 72 datetime_string, joined_str) |
74 new_line_for_passingrate += ' %s\n' % ( | 73 new_line_for_passingrate += ' %s\n' % ( |
75 LINE_INSERT_POINT_FOR_PASSING_RATE) | 74 LINE_INSERT_POINT_FOR_PASSING_RATE) |
76 layouttest_analyzer_helpers.ReplaceLineInFile( | 75 layouttest_analyzer_helpers.ReplaceLineInFile( |
77 self._location, LINE_INSERT_POINT_FOR_PASSING_RATE, | 76 self._location, LINE_INSERT_POINT_FOR_PASSING_RATE, |
78 new_line_for_passingrate) | 77 new_line_for_passingrate) |
OLD | NEW |