| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import argparse | 5 import argparse |
| 6 import datetime | 6 import datetime |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 import psutil | 11 import psutil |
| 12 | 12 |
| 13 from infra_libs import logs | 13 from infra_libs import logs |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 logging.info('Current working directory %s', os.getcwd()) | 114 logging.info('Current working directory %s', os.getcwd()) |
| 115 | 115 |
| 116 # Run the application's main function. | 116 # Run the application's main function. |
| 117 try: | 117 try: |
| 118 status = self.main(self.opts) | 118 status = self.main(self.opts) |
| 119 except Exception: | 119 except Exception: |
| 120 logging.exception('Uncaught exception, exiting:') | 120 logging.exception('Uncaught exception, exiting:') |
| 121 status = 1 | 121 status = 1 |
| 122 | 122 |
| 123 sys.exit(status) | 123 sys.exit(status) |
| OLD | NEW |