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

Unified Diff: scripts/common/unittests/test_env.py

Issue 2254643002: Instrument HTTP client requests to buildbucket (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@reland-tsmon-metrics
Patch Set: Fix test include paths Created 4 years, 4 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 | « no previous file | scripts/master/buildbucket/client.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/common/unittests/test_env.py
diff --git a/scripts/common/unittests/test_env.py b/scripts/common/unittests/test_env.py
index 08718d3f60698ad641520c58fa0d7b46b11ae611..3e4975728cdd4574d81e057f8d528c4ff3ddb8a4 100755
--- a/scripts/common/unittests/test_env.py
+++ b/scripts/common/unittests/test_env.py
@@ -13,19 +13,7 @@ import sys
RUNTESTS_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_PATH = os.path.join(RUNTESTS_DIR, 'data')
-BASE_DIR = os.path.abspath(os.path.join(RUNTESTS_DIR, '..', '..', '..'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'buildbot_8_4p1'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'buildbot_slave_8_4'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party',
- 'google_api_python_client'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'httplib2/python2'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'jinja2'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'markupsafe'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'mock-1.0.1'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'oauth2client'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'sqlalchemy_0_7_1'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'twisted_10_2'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'uritemplate'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'scripts'))
-sys.path.insert(0, os.path.join(BASE_DIR, 'site_config'))
+
+sys.path.insert(0, os.path.join(RUNTESTS_DIR, '../..'))
+import common.env
+common.env.Install()
« no previous file with comments | « no previous file | scripts/master/buildbucket/client.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698