| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import unittest | 10 import unittest |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 logging.debug(out) | 30 logging.debug(out) |
| 31 self.assertEqual(0, p.returncode, out) | 31 self.assertEqual(0, p.returncode, out) |
| 32 | 32 |
| 33 | 33 |
| 34 if __name__ == '__main__': | 34 if __name__ == '__main__': |
| 35 logging.basicConfig( | 35 logging.basicConfig( |
| 36 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 36 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 37 if '-v' in sys.argv: | 37 if '-v' in sys.argv: |
| 38 unittest.TestCase.maxDiff = None | 38 unittest.TestCase.maxDiff = None |
| 39 unittest.main() | 39 unittest.main() |
| OLD | NEW |