| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI 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 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 """Integration test for the Swarming server.""" | 6 """Integration test for the Swarming server.""" |
| 7 | 7 |
| 8 import Queue | 8 import Queue |
| 9 import json | 9 import json |
| 10 import logging | 10 import logging |
| 11 import optparse | 11 import optparse |
| 12 import os | 12 import os |
| 13 import subprocess | 13 import subprocess |
| 14 import sys | 14 import sys |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 for i in xrange(len(tests)): | 239 for i in xrange(len(tests)): |
| 240 name, result, duration = results.get() | 240 name, result, duration = results.get() |
| 241 print('[%d/%d] %-*s: %4.1fs: %s' % | 241 print('[%d/%d] %-*s: %4.1fs: %s' % |
| 242 (i, len(tests), maxlen, name, duration, result)) | 242 (i, len(tests), maxlen, name, duration, result)) |
| 243 | 243 |
| 244 return 0 | 244 return 0 |
| 245 | 245 |
| 246 | 246 |
| 247 if __name__ == '__main__': | 247 if __name__ == '__main__': |
| 248 sys.exit(main()) | 248 sys.exit(main()) |
| OLD | NEW |