OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 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 import datetime | 6 import datetime |
7 import hashlib | 7 import hashlib |
8 import json | 8 import json |
9 import logging | 9 import logging |
10 import os | 10 import os |
11 import re | 11 import re |
12 import StringIO | 12 import StringIO |
13 import subprocess | 13 import subprocess |
14 import sys | 14 import sys |
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 | 1384 |
1385 if __name__ == '__main__': | 1385 if __name__ == '__main__': |
1386 fix_encoding.fix_encoding() | 1386 fix_encoding.fix_encoding() |
1387 logging.basicConfig( | 1387 logging.basicConfig( |
1388 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL) | 1388 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL) |
1389 if '-v' in sys.argv: | 1389 if '-v' in sys.argv: |
1390 unittest.TestCase.maxDiff = None | 1390 unittest.TestCase.maxDiff = None |
1391 for e in ('ISOLATE_SERVER', 'SWARMING_TASK_ID', 'SWARMING_SERVER'): | 1391 for e in ('ISOLATE_SERVER', 'SWARMING_TASK_ID', 'SWARMING_SERVER'): |
1392 os.environ.pop(e, None) | 1392 os.environ.pop(e, None) |
1393 unittest.main() | 1393 unittest.main() |
OLD | NEW |