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

Unified Diff: scripts/slave/swarming/swarming_utils.py

Issue 23176003: Create proper wrapper scripts to decouple from swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Had forgot to append _shim to one comment Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/swarming/get_swarm_results_shim.py ('k') | scripts/slave/swarming/trigger_swarm_shim.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/swarming/swarming_utils.py
diff --git a/scripts/slave/swarming/swarming_utils.py b/scripts/slave/swarming/swarming_utils.py
index 8bb1644bee30fc1f8e68e3a6ce7d8ef2c2958f4b..b2368da4ed03970985bc63b7b9095d74d932a021 100644
--- a/scripts/slave/swarming/swarming_utils.py
+++ b/scripts/slave/swarming/swarming_utils.py
@@ -9,7 +9,12 @@ import os
def find_client(base_dir):
- """Returns the path to swarming_client if found."""
+ """Returns the path to swarming_client if found.
+
+ |base_dir| will be in general os.getcwd(), so the script is very dependent on
+ CWD. CWD should be the base directory of the checkout. It has always been the
+ case.
+ """
src_swarming_client = os.path.join(
base_dir, 'src', 'tools', 'swarming_client')
if os.path.isdir(src_swarming_client):
« no previous file with comments | « scripts/slave/swarming/get_swarm_results_shim.py ('k') | scripts/slave/swarming/trigger_swarm_shim.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698