| 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 """Generates the swarming_bot.zip archive for local testing. | 6 """Generates the swarming_bot.zip archive for local testing. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import hashlib | 9 import hashlib |
| 10 import json | 10 import json |
| 11 import logging | 11 import logging |
| 12 import os | 12 import os |
| 13 import StringIO | 13 import StringIO |
| 14 import sys | 14 import sys |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 sys.path.insert(0, ROOT_DIR) | 51 sys.path.insert(0, ROOT_DIR) |
| 52 content, _ = get_swarming_bot_zip() | 52 content, _ = get_swarming_bot_zip() |
| 53 with open(os.path.join(ROOT_DIR, 'swarming_bot.zip'), 'wb') as f: | 53 with open(os.path.join(ROOT_DIR, 'swarming_bot.zip'), 'wb') as f: |
| 54 f.write(content) | 54 f.write(content) |
| 55 return 0 | 55 return 0 |
| 56 | 56 |
| 57 | 57 |
| 58 if __name__ == '__main__': | 58 if __name__ == '__main__': |
| 59 sys.exit(main()) | 59 sys.exit(main()) |
| OLD | NEW |