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 getpass | 7 import getpass |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import tempfile | 10 import tempfile |
11 import unittest | 11 import unittest |
12 import StringIO | 12 import StringIO |
13 import subprocess | 13 import subprocess |
14 import sys | 14 import sys |
15 import time | 15 import time |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 file_path.rmtree(dirpath) | 394 file_path.rmtree(dirpath) |
395 | 395 |
396 | 396 |
397 if __name__ == '__main__': | 397 if __name__ == '__main__': |
398 fix_encoding.fix_encoding() | 398 fix_encoding.fix_encoding() |
399 logging.basicConfig( | 399 logging.basicConfig( |
400 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 400 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
401 if '-v' in sys.argv: | 401 if '-v' in sys.argv: |
402 unittest.TestCase.maxDiff = None | 402 unittest.TestCase.maxDiff = None |
403 unittest.main() | 403 unittest.main() |
OLD | NEW |