Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: tools/idl_parser/run_tests.py

Issue 13498002: Add WebIDL compliant parser plus tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 'Delay build of Lexer to handler tokens correctly.' Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/idl_parser/idl_ppapi_lexer.py ('k') | tools/idl_parser/test_lexer/keywords.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/idl_parser/run_tests.py
diff --git a/tools/idl_parser/run_tests.py b/tools/idl_parser/run_tests.py
index 9bb135653f6a8619d2fcd87320a817f94205dae4..cf26759f7b9d032e83606c5c3ab1e0cb290ba7ee 100755
--- a/tools/idl_parser/run_tests.py
+++ b/tools/idl_parser/run_tests.py
@@ -8,6 +8,13 @@ import sys
import unittest
if __name__ == '__main__':
- testlist = glob.glob('*_test.py')
- for testname in testlist:
- unittest.main(verbosity=2, module=testname[:-3])
+ suite = unittest.TestSuite()
+ for testname in glob.glob('*_test.py'):
+ print 'Adding Test: ' + testname
+ module = __import__(testname[:-3])
+ suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
+ result = unittest.TextTestRunner(verbosity=2).run(suite)
+ if result.wasSuccessful():
+ sys.exit(0)
+ else:
+ sys.exit(1)
« no previous file with comments | « tools/idl_parser/idl_ppapi_lexer.py ('k') | tools/idl_parser/test_lexer/keywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698