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

Side by Side Diff: client/tools/run_swarming_tests_on_swarming.py

Issue 2093593002: luci-py: Making __file__ usage unicode safe. (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Small fixes. Created 4 years, 5 months 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
« no previous file with comments | « client/tools/run_on_bots.py ('k') | client/tools/swarming_count_tasks.py » ('j') | 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 2012 The LUCI 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 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # that can be found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 """Runs the whole set of swarming client unit tests on swarming itself. 6 """Runs the whole set of swarming client unit tests on swarming itself.
7 7
8 This is done in a few steps: 8 This is done in a few steps:
9 - Archive the whole directory as a single .isolated file. 9 - Archive the whole directory as a single .isolated file.
10 - Create one test-specific .isolated for each test to run. The file is created 10 - Create one test-specific .isolated for each test to run. The file is created
11 directly and archived manually with isolateserver.py. 11 directly and archived manually with isolateserver.py.
12 - Trigger each of these test-specific .isolated file per OS. 12 - Trigger each of these test-specific .isolated file per OS.
13 - Get all results out of order. 13 - Get all results out of order.
14 """ 14 """
15 15
16 __version__ = '0.1' 16 __version__ = '0.1'
17 17
18 import glob 18 import glob
19 import logging 19 import logging
20 import os 20 import os
21 import subprocess 21 import subprocess
22 import sys 22 import sys
23 import tempfile 23 import tempfile
24 import time 24 import time
25 25
26 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 26 ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(
27 __file__.decode(sys.getfilesystemencoding()))))
27 28
28 # Must be first import. 29 # Must be first import.
29 import parallel_execution 30 import parallel_execution
30 31
31 from third_party import colorama 32 from third_party import colorama
32 from third_party.depot_tools import fix_encoding 33 from third_party.depot_tools import fix_encoding
33 from utils import file_path 34 from utils import file_path
34 from utils import tools 35 from utils import tools
35 36
36 37
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 tests, 208 tests,
208 options.logs, 209 options.logs,
209 options.no_idempotent) 210 options.no_idempotent)
210 211
211 212
212 if __name__ == '__main__': 213 if __name__ == '__main__':
213 fix_encoding.fix_encoding() 214 fix_encoding.fix_encoding()
214 tools.disable_buffering() 215 tools.disable_buffering()
215 colorama.init() 216 colorama.init()
216 sys.exit(main()) 217 sys.exit(main())
OLDNEW
« no previous file with comments | « client/tools/run_on_bots.py ('k') | client/tools/swarming_count_tasks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698