OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding=utf-8 | 2 # coding=utf-8 |
3 # Copyright 2013 The LUCI Authors. All rights reserved. | 3 # Copyright 2013 The LUCI Authors. All rights reserved. |
4 # Use of this source code is governed by the Apache v2.0 license that can be | 4 # Use of this source code is governed under the Apache License, Version 2.0 |
5 # found in the LICENSE file. | 5 # that can be found in the LICENSE file. |
6 | 6 |
7 import base64 | 7 import base64 |
8 import json | 8 import json |
9 import logging | 9 import logging |
10 import os | 10 import os |
11 import signal | 11 import signal |
12 import shutil | 12 import shutil |
13 import sys | 13 import sys |
14 import tempfile | 14 import tempfile |
15 import time | 15 import time |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 fix_encoding.fix_encoding() | 1096 fix_encoding.fix_encoding() |
1097 if '-v' in sys.argv: | 1097 if '-v' in sys.argv: |
1098 unittest.TestCase.maxDiff = None | 1098 unittest.TestCase.maxDiff = None |
1099 logging_utils.prepare_logging(None) | 1099 logging_utils.prepare_logging(None) |
1100 logging_utils.set_console_level( | 1100 logging_utils.set_console_level( |
1101 logging.DEBUG if '-v' in sys.argv else logging.CRITICAL+1) | 1101 logging.DEBUG if '-v' in sys.argv else logging.CRITICAL+1) |
1102 # Fix litteral text expectation. | 1102 # Fix litteral text expectation. |
1103 os.environ['LANG'] = 'en_US.UTF-8' | 1103 os.environ['LANG'] = 'en_US.UTF-8' |
1104 os.environ['LANGUAGE'] = 'en_US.UTF-8' | 1104 os.environ['LANGUAGE'] = 'en_US.UTF-8' |
1105 unittest.main() | 1105 unittest.main() |
OLD | NEW |