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

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

Issue 14988009: First cut of testing infrastructure for recipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Add coverage to third_party. The C module is a speed-only optimization. Created 7 years, 7 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 | Annotate | Revision Log
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 BASE_DIR = os.path.abspath(os.path.join(RUNTESTS_DIR, '..', '..', '..'))
17 17
18 sys.path.insert(0, os.path.join(BASE_DIR, 'scripts')) 18 sys.path.insert(0, os.path.join(BASE_DIR, 'scripts'))
19 sys.path.insert(0, os.path.join(BASE_DIR, 'site_config')) 19 sys.path.insert(0, os.path.join(BASE_DIR, 'site_config'))
20 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party')) 20 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party'))
21 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'buildbot_8_4p1')) 21 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'buildbot_8_4p1'))
22 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'twisted_10_2')) 22 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'twisted_10_2'))
23 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'mock-1.0.1')) 23 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'mock-1.0.1'))
24 sys.path.insert(0, os.path.join(BASE_DIR, 'third_party', 'coverage-3.6'))
24 25
25 from common import find_depot_tools # pylint: disable=W0611 26 from common import find_depot_tools # pylint: disable=W0611
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698