Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
M-A Ruel
2012/04/19 18:31:28
Can you put this and the tests into slave/unittest
csharp
2012/04/19 19:02:16
Done.
| |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 """Script to setup the environment to run unit tests. | |
| 6 | |
| 7 Modifies PYTHONPATH to automatically include parent, common and pylibs | |
| 8 directories. | |
| 9 """ | |
| 10 | |
| 11 import os | |
| 12 import sys | |
| 13 | |
| 14 RUNTESTS_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| 15 BASE_DIR = os.path.abspath(os.path.join(RUNTESTS_DIR, '..', '..')) | |
| 16 DEPOT_TOOLS = os.path.join(BASE_DIR, '..', 'depot_tools') | |
| 17 sys.path.insert(0, RUNTESTS_DIR) | |
| 18 sys.path.insert(0, os.path.join(RUNTESTS_DIR, '..')) | |
| 19 sys.path.insert(0, BASE_DIR) | |
| 20 sys.path.insert(0, DEPOT_TOOLS) | |
| OLD | NEW |