Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: tests/swarming_test.py

Issue 48863002: Set the Swarm Test encoding to UTF-8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « swarming.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import hashlib 6 import hashlib
7 import json 7 import json
8 import logging 8 import logging
9 import os 9 import os
10 import StringIO 10 import StringIO
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 { 423 {
424 u'config_name': os_value, 424 u'config_name': os_value,
425 u'dimensions': { 425 u'dimensions': {
426 u'os': os_value, 426 u'os': os_value,
427 }, 427 },
428 u'min_instances': shards, 428 u'min_instances': shards,
429 u'priority': 101, 429 u'priority': 101,
430 }, 430 },
431 ], 431 ],
432 u'data': [], 432 u'data': [],
433 u'encoding': 'UTF-8',
433 u'env_vars': {}, 434 u'env_vars': {},
434 u'restart_on_failure': True, 435 u'restart_on_failure': True,
435 u'test_case_name': TEST_NAME, 436 u'test_case_name': TEST_NAME,
436 u'tests': chromium_tasks(isolate_server), 437 u'tests': chromium_tasks(isolate_server),
437 u'working_dir': unicode(working_dir), 438 u'working_dir': unicode(working_dir),
438 } 439 }
439 if shards > 1: 440 if shards > 1:
440 expected[u'env_vars'][u'GTEST_SHARD_INDEX'] = u'%(instance_index)s' 441 expected[u'env_vars'][u'GTEST_SHARD_INDEX'] = u'%(instance_index)s'
441 expected[u'env_vars'][u'GTEST_TOTAL_SHARDS'] = u'%(num_instances)s' 442 expected[u'env_vars'][u'GTEST_TOTAL_SHARDS'] = u'%(num_instances)s'
442 if profile: 443 if profile:
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 'Usage: swarming.py trigger [options]\n\n' 620 'Usage: swarming.py trigger [options]\n\n'
620 'swarming.py: error: At least one --task is required.\n') 621 'swarming.py: error: At least one --task is required.\n')
621 622
622 623
623 if __name__ == '__main__': 624 if __name__ == '__main__':
624 logging.basicConfig( 625 logging.basicConfig(
625 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) 626 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR)
626 if '-v' in sys.argv: 627 if '-v' in sys.argv:
627 unittest.TestCase.maxDiff = None 628 unittest.TestCase.maxDiff = None
628 unittest.main() 629 unittest.main()
OLDNEW
« no previous file with comments | « swarming.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698