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 """Reads a .isolated, creates a tree of hardlinks and runs the test. | 6 """Reads a .isolated, creates a tree of hardlinks and runs the test. |
7 | 7 |
8 To improve performance, it keeps a local cache. The local cache can safely be | 8 To improve performance, it keeps a local cache. The local cache can safely be |
9 deleted. | 9 deleted. |
10 | 10 |
11 Any ${ISOLATED_OUTDIR} on the command line will be replaced by the location of a | 11 Any ${ISOLATED_OUTDIR} on the command line will be replaced by the location of a |
12 temporary directory upon execution of the command specified in the .isolated | 12 temporary directory upon execution of the command specified in the .isolated |
13 file. All content written to this directory will be uploaded upon termination | 13 file. All content written to this directory will be uploaded upon termination |
14 and the .isolated file describing this directory will be printed to stdout. | 14 and the .isolated file describing this directory will be printed to stdout. |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 assert storage.hash_algo == cache.hash_algo | 490 assert storage.hash_algo == cache.hash_algo |
491 return run_tha_test( | 491 return run_tha_test( |
492 options.isolated, storage, cache, options.leak_temp_dir, options.json, | 492 options.isolated, storage, cache, options.leak_temp_dir, options.json, |
493 options.root_dir, options.hard_timeout, options.grace_period, args) | 493 options.root_dir, options.hard_timeout, options.grace_period, args) |
494 | 494 |
495 | 495 |
496 if __name__ == '__main__': | 496 if __name__ == '__main__': |
497 # Ensure that we are always running with the correct encoding. | 497 # Ensure that we are always running with the correct encoding. |
498 fix_encoding.fix_encoding() | 498 fix_encoding.fix_encoding() |
499 sys.exit(main(sys.argv[1:])) | 499 sys.exit(main(sys.argv[1:])) |
OLD | NEW |