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

Side by Side Diff: bin/ctest.py

Issue 3678004: Hide errors until builder succeeds. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Nit Created 10 years, 2 months 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 | « no previous file | no next file » | 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 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Wrapper for tests that are run on builders.""" 7 """Wrapper for tests that are run on builders."""
8 8
9 import fileinput 9 import fileinput
10 import optparse 10 import optparse
11 import os 11 import os
12 import sys 12 import sys
13 import traceback
13 import urllib 14 import urllib
14 15
15 sys.path.append(os.path.join(os.path.dirname(__file__), '../lib')) 16 sys.path.append(os.path.join(os.path.dirname(__file__), '../lib'))
16 from cros_build_lib import Info, RunCommand, ReinterpretPathForChroot 17 from cros_build_lib import Info, RunCommand, ReinterpretPathForChroot
17 18
18 _IMAGE_TO_EXTRACT = 'chromiumos_test_image.bin' 19 _IMAGE_TO_EXTRACT = 'chromiumos_test_image.bin'
19 20
20 21
21 def ModifyBootDesc(download_folder, redirect_file=None): 22 def ModifyBootDesc(download_folder, redirect_file=None):
22 """Modifies the boot description of a downloaded image to work with path. 23 """Modifies the boot description of a downloaded image to work with path.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 if not options.zipbase: 207 if not options.zipbase:
207 parser.error('Need zip url base to get images.') 208 parser.error('Need zip url base to get images.')
208 209
209 RunAUTestHarness(options.board, options.channel, options.latestbase, 210 RunAUTestHarness(options.board, options.channel, options.latestbase,
210 options.zipbase, options.no_graphics, options.type, 211 options.zipbase, options.no_graphics, options.type,
211 options.remote) 212 options.remote)
212 213
213 214
214 if __name__ == '__main__': 215 if __name__ == '__main__':
215 main() 216 try:
217 main()
218 except Exception:
219 print "Got exception."
220 traceback.print_exc(file=sys.stdout)
221
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698