| OLD | NEW |
| 1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Contains logic to parse .isolate files. | 5 """Contains logic to parse .isolate files. |
| 6 | 6 |
| 7 This module doesn't touch the file system. It's the job of the client code to do | 7 This module doesn't touch the file system. It's the job of the client code to do |
| 8 I/O on behalf of this module. | 8 I/O on behalf of this module. |
| 9 | 9 |
| 10 See more information at | 10 See more information at |
| 11 https://code.google.com/p/swarming/wiki/IsolateDesign | 11 https://code.google.com/p/swarming/wiki/IsolateDesign |
| 12 https://code.google.com/p/swarming/wiki/IsolateUserGuide | 12 https://code.google.com/p/swarming/wiki/IsolateUserGuide |
| 13 """ | 13 """ |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 raise IsolateError( | 654 raise IsolateError( |
| 655 'These configuration variables were missing from the command line: %s' % | 655 'These configuration variables were missing from the command line: %s' % |
| 656 ', '.join( | 656 ', '.join( |
| 657 sorted(set(isolate.config_variables) - set(config_variables)))) | 657 sorted(set(isolate.config_variables) - set(config_variables)))) |
| 658 | 658 |
| 659 # A configuration is to be created with all the combinations of free | 659 # A configuration is to be created with all the combinations of free |
| 660 # variables. | 660 # variables. |
| 661 config = isolate.get_config(config_name) | 661 config = isolate.get_config(config_name) |
| 662 dependencies = [f.replace('/', os.path.sep) for f in config.files] | 662 dependencies = [f.replace('/', os.path.sep) for f in config.files] |
| 663 return config.command, dependencies, config.read_only, config.isolate_dir | 663 return config.command, dependencies, config.read_only, config.isolate_dir |
| OLD | NEW |