| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # copyright (c) 2012 the chromium authors. all rights reserved. | 2 # Copyright (c) 2012 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 os | 6 import os |
| 7 import re | 7 import re |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import tempfile | 10 import tempfile |
| 11 import test_server | 11 import test_server |
| 12 import unittest | 12 import unittest |
| 13 | 13 |
| 14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | 14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 | 134 |
| 135 def main(): | 135 def main(): |
| 136 suite = unittest.defaultTestLoader.loadTestsFromModule(sys.modules[__name__]) | 136 suite = unittest.defaultTestLoader.loadTestsFromModule(sys.modules[__name__]) |
| 137 result = unittest.TextTestRunner(verbosity=2).run(suite) | 137 result = unittest.TextTestRunner(verbosity=2).run(suite) |
| 138 | 138 |
| 139 return int(not result.wasSuccessful()) | 139 return int(not result.wasSuccessful()) |
| 140 | 140 |
| 141 if __name__ == '__main__': | 141 if __name__ == '__main__': |
| 142 sys.exit(main()) | 142 sys.exit(main()) |
| OLD | NEW |