| 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 """Utilities for PyAuto.""" | 5 """Utilities for PyAuto.""" |
| 7 | 6 |
| 8 import logging | 7 import logging |
| 9 import os | 8 import os |
| 10 import shutil | 9 import shutil |
| 11 import sys | 10 import sys |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 bars. | 151 bars. |
| 153 units: The string unit of measurement for the given |data_point|. | 152 units: The string unit of measurement for the given |data_point|. |
| 154 show_on_waterfall: Whether or not to display this result directly on the | 153 show_on_waterfall: Whether or not to display this result directly on the |
| 155 buildbot waterfall itself (in the buildbot step running | 154 buildbot waterfall itself (in the buildbot step running |
| 156 this test on the waterfall page, not the stdio page). | 155 this test on the waterfall page, not the stdio page). |
| 157 """ | 156 """ |
| 158 waterfall_indicator = ['', '*'][show_on_waterfall] | 157 waterfall_indicator = ['', '*'][show_on_waterfall] |
| 159 print '%sRESULT %s: %s= %s %s' % ( | 158 print '%sRESULT %s: %s= %s %s' % ( |
| 160 waterfall_indicator, graph_name, series_name, | 159 waterfall_indicator, graph_name, series_name, |
| 161 str(data_point).replace(' ', ''), units) | 160 str(data_point).replace(' ', ''), units) |
| OLD | NEW |