Skip to content

Commit

Permalink
builder status: offer ordered set of the test results.
Browse files Browse the repository at this point in the history
Since the test results are stored in a dictionary, their order of
appearance at the page would be arbitrary. Offer a sorted version.
  • Loading branch information
xrg authored and Dustin J. Mitchell committed Oct 3, 2010
1 parent 0160f27 commit 0d58796
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions master/buildbot/status/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,12 @@ def getSlavename(self):
def getTestResults(self):
return self.testResults

def getTestResultsOrd(self):
trs = self.testResults.keys()
trs.sort()
ret = [ self.testResults[t] for t in trs]
return ret

def getLogs(self):
# TODO: steps should contribute significant logs instead of this
# hack, which returns every log from every step. The logs should get
Expand Down

0 comments on commit 0d58796

Please sign in to comment.