| OLD | NEW |
| 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 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 parser.set_usage(parser.format_help()) | 304 parser.set_usage(parser.format_help()) |
| 305 (options, args) = parser.parse_args() | 305 (options, args) = parser.parse_args() |
| 306 | 306 |
| 307 if args: parser.error('Extra args found %s.' % args) | 307 if args: parser.error('Extra args found %s.' % args) |
| 308 if not options.board: parser.error('Need board for image to compare against.') | 308 if not options.board: parser.error('Need board for image to compare against.') |
| 309 if not options.channel: parser.error('Need channel e.g. dev-channel.') | 309 if not options.channel: parser.error('Need channel e.g. dev-channel.') |
| 310 if not options.zipbase: parser.error('Need zip url base to get images.') | 310 if not options.zipbase: parser.error('Need zip url base to get images.') |
| 311 | 311 |
| 312 RunAUTestHarness(options.board, options.channel, options.latestbase, | 312 RunAUTestHarness(options.board, options.channel, options.latestbase, |
| 313 options.zipbase, options.no_graphics, options.type, | 313 options.zipbase, options.no_graphics, options.type, |
| 314 options.remote, not options.cache) | 314 options.remote, not options.cache, |
| 315 options.test_results_root) |
| 315 | 316 |
| 316 | 317 |
| 317 if __name__ == '__main__': | 318 if __name__ == '__main__': |
| 318 main() | 319 main() |
| 319 | 320 |
| OLD | NEW |