| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # 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 |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Parses the command line, discovers the appropriate tests, and runs them. | 5 """Parses the command line, discovers the appropriate tests, and runs them. |
| 6 | 6 |
| 7 Handles test configuration, but all the logic for | 7 Handles test configuration, but all the logic for |
| 8 actually running the test is in Test and PageRunner.""" | 8 actually running the test is in Test and PageRunner.""" |
| 9 | 9 |
| 10 import inspect | 10 import inspect |
| 11 import json | 11 import json |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 276 |
| 277 # Parse and run the command. | 277 # Parse and run the command. |
| 278 parser = command.CreateParser() | 278 parser = command.CreateParser() |
| 279 command.AddCommandLineArgs(parser) | 279 command.AddCommandLineArgs(parser) |
| 280 options, args = parser.parse_args() | 280 options, args = parser.parse_args() |
| 281 if commands: | 281 if commands: |
| 282 args = args[1:] | 282 args = args[1:] |
| 283 options.positional_args = args | 283 options.positional_args = args |
| 284 command.ProcessCommandLineArgs(parser, options) | 284 command.ProcessCommandLineArgs(parser, options) |
| 285 return command().Run(options) | 285 return command().Run(options) |
| OLD | NEW |