| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import BaseHTTPServer | 6 import BaseHTTPServer |
| 7 import atexit | 7 import atexit |
| 8 import cgi | 8 import cgi |
| 9 import getpass | 9 import getpass |
| 10 import json | 10 import json |
| 11 import logging | 11 import logging |
| 12 import os | 12 import os |
| 13 import platform | 13 import platform |
| 14 import re | 14 import re |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 os.environ.pop(on_error._DISABLE_ENVVAR, None) | 411 os.environ.pop(on_error._DISABLE_ENVVAR, None) |
| 412 | 412 |
| 413 if len(sys.argv) == 4 and sys.argv[1] == 'run_shell_out': | 413 if len(sys.argv) == 4 and sys.argv[1] == 'run_shell_out': |
| 414 sys.exit(run_shell_out(sys.argv[2], sys.argv[3])) | 414 sys.exit(run_shell_out(sys.argv[2], sys.argv[3])) |
| 415 | 415 |
| 416 if '-v' in sys.argv: | 416 if '-v' in sys.argv: |
| 417 unittest.TestCase.maxDiff = None | 417 unittest.TestCase.maxDiff = None |
| 418 logging.basicConfig( | 418 logging.basicConfig( |
| 419 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 419 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 420 unittest.main() | 420 unittest.main() |
| OLD | NEW |