Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: third_party/gsutil/third_party/rsa/run_tests.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/third_party/rsa/rsa/varblock.py ('k') | third_party/gsutil/third_party/rsa/setup.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « third_party/gsutil/third_party/rsa/rsa/varblock.py ('k') | third_party/gsutil/third_party/rsa/setup.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698