Roll src/third_party/WebKit 9d2dfea:3aea697 (svn 201972:201973)
[chromium-blink-merge.git] / tools / cygprofile / run_tests
blob70eb64981ab719b8de055211f1ce340fbad597cf
1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 import logging
7 import os
8 import sys
9 import unittest
12 if __name__ == '__main__':
13 logging.basicConfig(
14 level=logging.DEBUG if '-v' in sys.argv else logging.WARNING,
15 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s')
17 suite = unittest.TestSuite()
18 loader = unittest.TestLoader()
19 suite.addTests(loader.discover(start_dir=os.path.dirname(__file__),
20 pattern='*_unittest.py'))
21 res = unittest.TextTestRunner(verbosity=2).run(suite)
22 if res.wasSuccessful():
23 sys.exit(0)
24 else:
25 sys.exit(1)