| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The LUCI Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Starts local Swarming and Isolate servers.""" | 6 """Starts local Swarming and Isolate servers.""" |
| 7 | 7 |
| 8 import argparse | 8 import argparse |
| 9 import os | 9 import os |
| 10 import shutil | 10 import shutil |
| 11 import sys | 11 import sys |
| 12 import tempfile | 12 import tempfile |
| 13 | 13 |
| 14 | 14 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 dump_log = False | 109 dump_log = False |
| 110 finally: | 110 finally: |
| 111 exit_code = servers.stop(False) | 111 exit_code = servers.stop(False) |
| 112 if dump_log: | 112 if dump_log: |
| 113 servers.dump_log() | 113 servers.dump_log() |
| 114 return exit_code | 114 return exit_code |
| 115 | 115 |
| 116 | 116 |
| 117 if __name__ == '__main__': | 117 if __name__ == '__main__': |
| 118 sys.exit(main()) | 118 sys.exit(main()) |
| OLD | NEW |