Remove dependency to FileSystem from video_player and photo_import.
[chromium-blink-merge.git] / tools / idl_parser / run_tests.py
blobcf26759f7b9d032e83606c5c3ab1e0cb290ba7ee
1 #!/usr/bin/env python
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
4 # found in the LICENSE file.
6 import glob
7 import sys
8 import unittest
10 if __name__ == '__main__':
11 suite = unittest.TestSuite()
12 for testname in glob.glob('*_test.py'):
13 print 'Adding Test: ' + testname
14 module = __import__(testname[:-3])
15 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
16 result = unittest.TextTestRunner(verbosity=2).run(suite)
17 if result.wasSuccessful():
18 sys.exit(0)
19 else:
20 sys.exit(1)