Skip to content

Commit

Permalink
Add buildbot try support code, untested
Browse files Browse the repository at this point in the history
  • Loading branch information
maruel committed Oct 14, 2009
1 parent 17e9195 commit 9137a5c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions buildbot/scripts/tryclient.py
Expand Up @@ -408,7 +408,10 @@ def createJob(self):
diff = sys.stdin.read()
else:
diff = open(difffile,"r").read()
patch = (self.config['patchlevel'], diff)
patch = [self.config['patchlevel'], diff]
root_dir = self.getopt("root", "try_root_dir")
if root_dir:
patch.append(root_dir)
ss = SourceStamp(branch, baserev, patch)
d = defer.succeed(ss)
else:
Expand Down Expand Up @@ -442,11 +445,13 @@ def _createJob_1(self, ss):
def fakeDeliverJob(self):
# Display the job to be delivered, but don't perform delivery.
ss = self.sourcestamp
print ("Job:\n\tBranch: %s\n\tRevision: %s\n\tBuilders: %s\n%s"
print ("Job:\n\tBranch: %s\n\tRevision: %s\n\tBuilders: %s"
% (ss.branch,
ss.revision,
self.builderNames,
ss.patch[1]))
self.builderNames))
if len(ss.patch) >= 3:
print "\tRoot dir: %s" % self.patch[2]
print "%s" % ss.patch[1]
d = defer.Deferred()
d.callback(True)
return d
Expand Down Expand Up @@ -698,6 +703,3 @@ def logErr(self, why):
def cleanup(self, res=None):
if self.buildsetStatus:
self.buildsetStatus.broker.transport.loseConnection()



0 comments on commit 9137a5c

Please sign in to comment.