Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Bug 673131. Use a Python that contains SimpleJson. r=coop
Browse files Browse the repository at this point in the history
  • Loading branch information
Armen Zambrano Gasparnian committed Dec 22, 2011
1 parent 4e3de3e commit 2dc42b3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions process/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7077,13 +7077,9 @@ def __init__(self, OS, supportUrlBase, envName, buildBranch, branchName,
self.addRunTestStep()
self.addRebootStep()

def python25(self, platform):
if (platform.startswith('fedora')):
return "/home/cltbld/bin/python"
elif (platform == "leopard"):
return "/usr/bin/python"
elif (platform in ("snowleopard", "lion")):
return "/Users/cltbld/bin/python"
def pythonWithSimpleJson(self, platform):
if (platform in ("fedora", "fedora64", "leopard", "snowleopard", "lion")):
return "/tools/buildbot/bin/python"
elif (platform in ('w764', 'win7', 'xp')):
return "C:\\mozilla-build\\python25\\python.exe"

Expand Down Expand Up @@ -7390,7 +7386,7 @@ def addSetupSteps(self):
))
self.addStep(ShellCommand(
name='retrieve specified talos.zip in talos.json',
command=[self.python25(self.OS), 'talos_from_code.py', \
command=[self.pythonWithSimpleJson(self.OS), 'talos_from_code.py', \
'--talos_json_url', \
WithProperties('%(repo_path)s/raw-file/%(revision)s/testing/talos/talos.json')],
workdir=self.workdirBase,
Expand Down

0 comments on commit 2dc42b3

Please sign in to comment.