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

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

Issue 10035003: Split up Each Swarm Test into Two Steps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Renaming broken test :( Created 8 years, 8 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/slave/unittests/slave_utils_test_broken.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/unittests/test_env.py
diff --git a/scripts/slave/unittests/test_env.py b/scripts/slave/unittests/test_env.py
new file mode 100644
index 0000000000000000000000000000000000000000..dbd3c4c12fb6b2e4805b58e3f4ac3832330d614a
--- /dev/null
+++ b/scripts/slave/unittests/test_env.py
@@ -0,0 +1,19 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Script to setup the environment to run unit tests.
+
+Modifies PYTHONPATH to automatically include parent, common and pylibs
+directories.
+"""
+
+import os
+import sys
+
+RUNTESTS_DIR = os.path.dirname(os.path.abspath(__file__))
+BASE_DIR = os.path.abspath(os.path.join(RUNTESTS_DIR, '..', '..', '..'))
+
+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(BASE_DIR, '..', 'depot_tools'))
« no previous file with comments | « scripts/slave/unittests/slave_utils_test_broken.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698