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

Unified Diff: scripts/slave/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: 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
Index: scripts/slave/test_env.py
diff --git a/scripts/slave/test_env.py b/scripts/slave/test_env.py
new file mode 100644
index 0000000000000000000000000000000000000000..967c7f5d79bbc939f27a3e9982116e6d24ee5e23
--- /dev/null
+++ b/scripts/slave/test_env.py
@@ -0,0 +1,20 @@
+# 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.
+# 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, '..', '..'))
+DEPOT_TOOLS = os.path.join(BASE_DIR, '..', 'depot_tools')
+sys.path.insert(0, RUNTESTS_DIR)
+sys.path.insert(0, os.path.join(RUNTESTS_DIR, '..'))
+sys.path.insert(0, BASE_DIR)
+sys.path.insert(0, DEPOT_TOOLS)
« scripts/slave/get_swarm_results.py ('K') | « scripts/slave/run_slavelastic_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698