OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding=utf-8 | 2 # coding=utf-8 |
3 # Copyright 2012 The Swarming Authors. All rights reserved. | 3 # Copyright 2012 The LUCI Authors. All rights reserved. |
4 # Use of this source code is governed under the Apache License, Version 2.0 that | 4 # Use of this source code is governed by the Apache v2.0 license that can be |
5 # can be found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import functools | 7 import functools |
8 import json | 8 import json |
9 import logging | 9 import logging |
10 import os | 10 import os |
11 import shutil | 11 import shutil |
12 import subprocess | 12 import subprocess |
13 import sys | 13 import sys |
14 import tempfile | 14 import tempfile |
15 import unicodedata | 15 import unicodedata |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 VERBOSE = '-v' in sys.argv | 727 VERBOSE = '-v' in sys.argv |
728 logging.basicConfig(level=logging.DEBUG if VERBOSE else logging.ERROR) | 728 logging.basicConfig(level=logging.DEBUG if VERBOSE else logging.ERROR) |
729 if VERBOSE: | 729 if VERBOSE: |
730 unittest.TestCase.maxDiff = None | 730 unittest.TestCase.maxDiff = None |
731 # Necessary for the dtrace logger to work around execve() hook. See | 731 # Necessary for the dtrace logger to work around execve() hook. See |
732 # trace_inputs.py for more details. | 732 # trace_inputs.py for more details. |
733 os.environ['TRACE_INPUTS_DTRACE_ENABLE_EXECVE'] = '1' | 733 os.environ['TRACE_INPUTS_DTRACE_ENABLE_EXECVE'] = '1' |
734 print >> sys.stderr, 'Test are currently disabled' | 734 print >> sys.stderr, 'Test are currently disabled' |
735 sys.exit(0) | 735 sys.exit(0) |
736 #unittest.main() | 736 #unittest.main() |
OLD | NEW |