diff options
author | borenet <borenet@chromium.org> | 2016-03-21 09:02:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-21 09:02:51 -0700 |
commit | 423ba24cac329550fb20135707dbfc71686e7596 (patch) | |
tree | d31134e45215cf02eb1e8209e20fc40fcf248fba /infra | |
parent | 17a652017a0243c57c954662e08a7976b9990fee (diff) |
Swarming: Ensure depot_tools is in PATH when compiling
Turns out we were "lucky" for our Linux bots which already have depot_tools in PATH. The Mac bot does have depot_tools, but it's not in PATH. Add it in the script to ensure we can always get to it.
NOTRY=true
BUG=skia:4763
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1823653002
Review URL: https://codereview.chromium.org/1823653002
Diffstat (limited to 'infra')
-rw-r--r-- | infra/bots/flavor/default_flavor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/infra/bots/flavor/default_flavor.py b/infra/bots/flavor/default_flavor.py index 4d1111795d..e59887301f 100644 --- a/infra/bots/flavor/default_flavor.py +++ b/infra/bots/flavor/default_flavor.py @@ -107,6 +107,9 @@ class DefaultFlavorUtils(object): env['CHROME_PATH'] = self.chrome_path self._bot_info._run_once(self.bootstrap_win_toolchain) else: + # Ensure depot_tools is in PATH. + depot_tools = os.path.join('/b', 'depot_tools') + env['PATH'] = os.pathsep.join([depot_tools, os.environ['PATH']]) make_cmd = ['make'] cmd = make_cmd + [target] self._bot_info.run(cmd, env=env) |