| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Runs install and update tests. | 6 """Runs install and update tests. |
| 7 | 7 |
| 8 Install tests are performed using a single Chrome build, whereas two or more | 8 Install tests are performed using a single Chrome build, whereas two or more |
| 9 builds are needed for Update tests. There are separate command arguments for | 9 builds are needed for Update tests. There are separate command arguments for |
| 10 the builds that will be used for each of the tests. If a test file contains | 10 the builds that will be used for each of the tests. If a test file contains |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 result = pyauto_utils.GTestTextTestRunner(verbosity=1).run(tests) | 191 result = pyauto_utils.GTestTextTestRunner(verbosity=1).run(tests) |
| 192 del(tests) | 192 del(tests) |
| 193 if not result.wasSuccessful(): | 193 if not result.wasSuccessful(): |
| 194 print >>sys.stderr, ('Not all tests were successful.') | 194 print >>sys.stderr, ('Not all tests were successful.') |
| 195 sys.exit(1) | 195 sys.exit(1) |
| 196 sys.exit(0) | 196 sys.exit(0) |
| 197 | 197 |
| 198 | 198 |
| 199 if __name__ == '__main__': | 199 if __name__ == '__main__': |
| 200 Main() | 200 Main() |
| OLD | NEW |