| Index: third_party/gsutil/third_party/rsa/run_tests.py
|
| diff --git a/third_party/webapp2/run_tests.py b/third_party/gsutil/third_party/rsa/run_tests.py
|
| old mode 100644
|
| new mode 100755
|
| similarity index 50%
|
| copy from third_party/webapp2/run_tests.py
|
| copy to third_party/gsutil/third_party/rsa/run_tests.py
|
| index e9ee49a4d67f746dfac0b81719cf99ff1b69e8df..e0f249081fd724f54fa59ebf3098cbaee4a8306b
|
| --- a/third_party/webapp2/run_tests.py
|
| +++ b/third_party/gsutil/third_party/rsa/run_tests.py
|
| @@ -1,30 +1,19 @@
|
| +#!/usr/bin/env python
|
| +# -*- coding: utf-8 -*-
|
| +
|
| import os
|
| import sys
|
| -import unittest
|
| -
|
| -gae_path = '/usr/local/google_appengine'
|
| +import unittest2 as unittest
|
|
|
| current_path = os.path.abspath(os.path.dirname(__file__))
|
| tests_path = os.path.join(current_path, 'tests')
|
| sys.path[0:0] = [
|
| current_path,
|
| tests_path,
|
| - gae_path,
|
| - # All libs used by webapp2 and extras.
|
| - os.path.join(current_path, 'lib', 'babel'),
|
| - os.path.join(current_path, 'lib', 'Jinja2-2.6'),
|
| - os.path.join(current_path, 'lib', 'Mako-0.4.1'),
|
| - os.path.join(current_path, 'lib', 'gaepytz-2011h'),
|
| - os.path.join(current_path, 'lib', 'WebOb-1.0.8'),
|
| - # SDK libs.
|
| - os.path.join(gae_path, 'lib', 'django_0_96'),
|
| - #os.path.join(gae_path, 'lib', 'webob'),
|
| - os.path.join(gae_path, 'lib', 'yaml', 'lib'),
|
| - os.path.join(gae_path, 'lib', 'protorpc'),
|
| - os.path.join(gae_path, 'lib', 'simplejson'),
|
| ]
|
|
|
| -all_tests = [f[:-8] for f in os.listdir(tests_path) if f.endswith('_test.py')]
|
| +all_tests = [f[:-3] for f in os.listdir(tests_path)
|
| + if f.startswith('test_') and f.endswith(".py")]
|
|
|
| def get_suite(tests):
|
| tests = sorted(tests)
|
| @@ -49,6 +38,6 @@ if __name__ == '__main__':
|
| tests = sys.argv[1:]
|
| if not tests:
|
| tests = all_tests
|
| - tests = ['%s_test' % t for t in tests]
|
| + tests = ['%s' % t for t in tests]
|
| suite = get_suite(tests)
|
| - unittest.TextTestRunner(verbosity=2).run(suite)
|
| + unittest.TextTestRunner(verbosity=1).run(suite)
|
|
|