summaryrefslogtreecommitdiffstats
path: root/tools/findit/run_all_tests.py
blob: 230537a6176f670f169801d21d7de242f1137d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import sys
import unittest

from chromium_deps_unittest import ChromiumDEPSTest
from common.http_client_local_unittest import HttpClientLocalTest


if __name__ == '__main__':
   all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule(
             sys.modules[__name__])
   tests = unittest.TestSuite(all_tests_suite)
   result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests)
   sys.exit(len(result.failures) + len(result.errors))