| OLD | NEW |
| 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()) |
| OLD | NEW |