OLD | NEW |
1 # Copyright 2014 The LUCI Authors. All rights reserved. | 1 # Copyright 2014 The LUCI Authors. All rights reserved. |
2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
4 | 4 |
5 import logging | 5 import logging |
6 import os | 6 import os |
7 import sys | 7 import sys |
8 import unittest | 8 import unittest |
9 | 9 |
10 | 10 |
11 _UMASK = None | 11 _UMASK = None |
12 | 12 |
13 | 13 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 def main(): | 64 def main(): |
65 logging.basicConfig( | 65 logging.basicConfig( |
66 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR, | 66 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR, |
67 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') | 67 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') |
68 if '-v' in sys.argv: | 68 if '-v' in sys.argv: |
69 unittest.TestCase.maxDiff = None | 69 unittest.TestCase.maxDiff = None |
70 # Use an unusual umask. | 70 # Use an unusual umask. |
71 os.umask(0070) | 71 os.umask(0070) |
72 unittest.main() | 72 unittest.main() |
OLD | NEW |