Revert of Remove OneClickSigninHelper since it is no longer used. (patchset #5 id...
[chromium-blink-merge.git] / tools / deep_memory_profiler / visualizer / run_tests.py
blob7a0669c7c697d1b345b30adf6fca2caa044e42e1
1 #!/usr/bin/python
2 # Copyright 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 # This file is expected to be used under another directory to use,
7 # so we disable checking import path of GAE tools from this directory.
8 # pylint: disable=F0401
10 import os
11 import sys
12 import unittest
15 def main():
16 if len(sys.argv) != 2:
17 sys.stderr.write("""Usage: run_tests.py <path/to/google_appengine>""")
18 return 1
20 sys.path.insert(0, sys.argv.pop(1))
21 import dev_appserver
22 dev_appserver.fix_sys_path()
23 path = os.path.dirname(os.path.abspath(__file__))
24 suite = unittest.loader.TestLoader().discover(
25 path,
26 pattern='*_unittest.py'
28 unittest.TextTestRunner(verbosity=2).run(suite)
31 if __name__ == '__main__':
32 sys.exit(main())