1#!/usr/bin/python
2
3# Copyright 2014 Google Inc.
4#
5# Use of this source code is governed by a BSD-style license that can be
6# found in the LICENSE file.
7
8"""
9Run all the tests in platform_tools/android/tests.
10"""
11
12import os
13import unittest
14
15def main():
16  suite = unittest.TestLoader().discover(os.path.dirname(__file__),
17                                         pattern='*_tests.py')
18  results = unittest.TextTestRunner(verbosity=2).run(suite)
19  print repr(results)
20  if not results.wasSuccessful():
21    raise Exception('failed one or more unittests')
22
23if __name__ == '__main__':
24  main()
25