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

Unified Diff: tests/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 | « scripts/master/deferred_resource.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_env.py
diff --git a/tests/test_env.py b/tests/test_env.py
index add0ad1598f9549464b3589fc329087b02de5645..e3193a6d9ddd9f05f01dfbdf03d1f3129285421c 100755
--- a/tests/test_env.py
+++ b/tests/test_env.py
@@ -13,13 +13,7 @@ import sys
TESTS_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_PATH = os.path.join(TESTS_DIR, 'data')
-BASE_DIR = os.path.dirname(TESTS_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', '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', 'twisted_10_2'))
-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(TESTS_DIR, '../scripts'))
+import common.env
+common.env.Install()
« no previous file with comments | « scripts/master/deferred_resource.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698