OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Swarming Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # pylint: disable=W0212,W0223,W0231,W0613 | 6 # pylint: disable=W0212,W0223,W0231,W0613 |
7 | 7 |
8 import base64 | 8 import base64 |
9 import hashlib | 9 import hashlib |
10 import json | 10 import json |
11 import logging | 11 import logging |
12 import os | 12 import os |
13 import StringIO | 13 import StringIO |
14 import sys | 14 import sys |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 994 |
995 | 995 |
996 if __name__ == '__main__': | 996 if __name__ == '__main__': |
997 fix_encoding.fix_encoding() | 997 fix_encoding.fix_encoding() |
998 if '-v' in sys.argv: | 998 if '-v' in sys.argv: |
999 unittest.TestCase.maxDiff = None | 999 unittest.TestCase.maxDiff = None |
1000 logging.basicConfig( | 1000 logging.basicConfig( |
1001 level=(logging.DEBUG if '-v' in sys.argv else logging.CRITICAL)) | 1001 level=(logging.DEBUG if '-v' in sys.argv else logging.CRITICAL)) |
1002 clear_env_vars() | 1002 clear_env_vars() |
1003 unittest.main() | 1003 unittest.main() |
OLD | NEW |