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

Side by Side Diff: scripts/master/unittests/test_env.py

Issue 2228733003: Vendor infra_libs into build/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: 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 unified diff | Download patch
« environment.cfg.py ('K') | « environment.cfg.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Script to setup the environment to run unit tests. 5 """Script to setup the environment to run unit tests.
6 6
7 Modifies PYTHONPATH to automatically include parent, common and pylibs 7 Modifies PYTHONPATH to automatically include parent, common and pylibs
8 directories. 8 directories.
9 """ 9 """
10 10
11 import os 11 import os
12 import sys 12 import sys
13 13
14 RUNTESTS_DIR = os.path.dirname(os.path.abspath(__file__)) 14 RUNTESTS_DIR = os.path.dirname(os.path.abspath(__file__))
15 DATA_PATH = os.path.join(RUNTESTS_DIR, 'data') 15 DATA_PATH = os.path.join(RUNTESTS_DIR, 'data')
16 BASE_DIR = os.path.abspath(os.path.join(RUNTESTS_DIR, '..', '..', '..')) 16
17 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party')) 17 sys.path.insert(0, os.path.join(RUNTESTS_DIR, '../..'))
agable 2016/08/09 16:27:10 use "os.pardir", not "..". don't hard-code "/".
Sergey Berezin 2016/08/09 21:27:55 I'd use os.path.dirname(os.path.dirname(RUNTESTS_D
18 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'buildbot_8_4p1')) 18 import common.env
19 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'buildbot_slave_8_4')) 19 common.env.Install()
20 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'decorator_3_3_1'))
21 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party',
22 'google_api_python_client'))
23 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'httplib2/python2'))
24 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'jinja2'))
25 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'markupsafe'))
26 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'mock-1.0.1'))
27 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'oauth2client'))
28 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'sqlalchemy_0_7_1'))
29 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party',
30 'sqlalchemy_migrate_0_7_1'))
31 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'tempita_0_5'))
32 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'twisted_10_2'))
33 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'uritemplate'))
34 sys.path.insert(0, os.path.join(BASE_DIR, 'scripts'))
35 sys.path.insert(0, os.path.join(BASE_DIR, 'site_config'))
OLDNEW
« environment.cfg.py ('K') | « environment.cfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698