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
16 if len(sys
.argv
) != 2:
17 sys
.stderr
.write("""Usage: run_tests.py <path/to/google_appengine>""")
20 sys
.path
.insert(0, sys
.argv
.pop(1))
22 dev_appserver
.fix_sys_path()
23 path
= os
.path
.dirname(os
.path
.abspath(__file__
))
24 suite
= unittest
.loader
.TestLoader().discover(
26 pattern
='*_unittest.py'
28 unittest
.TextTestRunner(verbosity
=2).run(suite
)
31 if __name__
== '__main__':