| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2012 The LUCI Authors. All rights reserved. | 2 # Copyright 2012 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 """Runs a command with optional isolated input/output. | 6 """Runs a command with optional isolated input/output. |
| 7 | 7 |
| 8 Despite name "run_isolated", can run a generic non-isolated command specified as | 8 Despite name "run_isolated", can run a generic non-isolated command specified as |
| 9 args. | 9 args. |
| 10 | 10 |
| 11 If input isolated hash is provided, fetches it, creates a tree of hard links, | 11 If input isolated hash is provided, fetches it, creates a tree of hard links, |
| 12 appends args to the command in the fetched isolated and runs it. | 12 appends args to the command in the fetched isolated and runs it. |
| 13 To improve performance, keeps a local cache. | 13 To improve performance, keeps a local cache. |
| 14 The local cache can safely be deleted. | 14 The local cache can safely be deleted. |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 return run_tha_test( | 616 return run_tha_test( |
| 617 command, options.isolated, None, cache, options.leak_temp_dir, | 617 command, options.isolated, None, cache, options.leak_temp_dir, |
| 618 options.json, options.root_dir, options.hard_timeout, | 618 options.json, options.root_dir, options.hard_timeout, |
| 619 options.grace_period, args) | 619 options.grace_period, args) |
| 620 | 620 |
| 621 | 621 |
| 622 if __name__ == '__main__': | 622 if __name__ == '__main__': |
| 623 # Ensure that we are always running with the correct encoding. | 623 # Ensure that we are always running with the correct encoding. |
| 624 fix_encoding.fix_encoding() | 624 fix_encoding.fix_encoding() |
| 625 sys.exit(main(sys.argv[1:])) | 625 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |