OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2012 The Swarming Authors. All rights reserved. | 2 # Copyright 2012 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Runs hello_world.py, through hello_world.isolated, locally in a temporary | 6 """Runs hello_world.py, through hello_world.isolated, locally in a temporary |
7 directory. | 7 directory. |
8 | 8 |
9 The files are archived and fetched from the remote Isolate Server. | 9 The files are archived and fetched from the remote Isolate Server. |
10 """ | 10 """ |
11 | 11 |
12 import hashlib | 12 import hashlib |
13 import os | 13 import os |
14 import shutil | 14 import shutil |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ], options.verbose) | 64 ], options.verbose) |
65 return 0 | 65 return 0 |
66 except subprocess.CalledProcessError as e: | 66 except subprocess.CalledProcessError as e: |
67 return e.returncode | 67 return e.returncode |
68 finally: | 68 finally: |
69 shutil.rmtree(tempdir) | 69 shutil.rmtree(tempdir) |
70 | 70 |
71 | 71 |
72 if __name__ == '__main__': | 72 if __name__ == '__main__': |
73 sys.exit(main()) | 73 sys.exit(main()) |
OLD | NEW |