OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Swarming Authors. All rights reserved. | 2 # Copyright 2014 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 by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Integration test for the Swarming server, Swarming bot and Swarming client. | 6 """Integration test for the Swarming server, Swarming bot and Swarming client. |
7 | 7 |
8 It starts both a Swarming server and a Swarming bot and triggers tasks with the | 8 It starts both a Swarming server and a Swarming bot and triggers tasks with the |
9 Swarming client to ensure the system works end to end. | 9 Swarming client to ensure the system works end to end. |
10 """ | 10 """ |
11 | 11 |
12 import json | 12 import json |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 if bot.poll() is None: | 574 if bot.poll() is None: |
575 bot.kill() | 575 bot.kill() |
576 bot.wait() | 576 bot.wait() |
577 finally: | 577 finally: |
578 cleanup(bot, client, servers, failed or verbose, leak) | 578 cleanup(bot, client, servers, failed or verbose, leak) |
579 return int(failed) | 579 return int(failed) |
580 | 580 |
581 | 581 |
582 if __name__ == '__main__': | 582 if __name__ == '__main__': |
583 sys.exit(main()) | 583 sys.exit(main()) |
OLD | NEW |