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

Side by Side Diff: chrome/test/pyautolib/pyauto_utils.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/pyautolib/pyauto_paths.py ('k') | chrome/test/pyautolib/pyauto_utils_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyauto_paths.py ('k') | chrome/test/pyautolib/pyauto_utils_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698