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

Side by Side Diff: native_client_sdk/src/build_tools/tests/test_all.py

Issue 10910101: fix pylint warnings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 sys 6 import sys
7 import unittest 7 import unittest
8 8
9 TEST_MODULES = [ 9 TEST_MODULES = [
10 'test_auto_update_sdktools', 10 'test_auto_update_sdktools',
11 'test_update_manifest' 11 'test_update_nacl_manifest'
12 ] 12 ]
13 13
14 def main(): 14 def main():
15 suite = unittest.TestSuite() 15 suite = unittest.TestSuite()
16 for module_name in TEST_MODULES: 16 for module_name in TEST_MODULES:
17 __import__(module_name) 17 __import__(module_name)
18 module = sys.modules[module_name] 18 module = sys.modules[module_name]
19 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module)) 19 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
20 20
21 result = unittest.TextTestRunner(verbosity=2).run(suite) 21 result = unittest.TextTestRunner(verbosity=2).run(suite)
22 return int(not result.wasSuccessful()) 22 return int(not result.wasSuccessful())
23 23
24 if __name__ == '__main__': 24 if __name__ == '__main__':
25 sys.exit(main()) 25 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698