Skip to content

Commit

Permalink
add step.setStateStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Mar 3, 2014
1 parent ff5dd60 commit 9ff4454
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions master/buildbot/process/buildstep.py
Expand Up @@ -210,6 +210,11 @@ def setProgress(self, metric, value):
if self.progress:
self.progress.setProgress(metric, value)

def setStateStrings(self, strings):
self.step_status.old_setText(strings)
self.step_status.old_setText2(strings)
return defer.succeed(None)

@defer.inlineCallbacks
def startStep(self, remote):
self.remote = remote
Expand Down
2 changes: 1 addition & 1 deletion master/docs/manual/new-style-steps.rst
Expand Up @@ -137,7 +137,7 @@ Removed Methods
+++++++++++++++

The ``self.step_status.setText`` and ``setText2`` methods have been removed.
Replace them with asynchronous calls to ``self.setStatusStrings``.
Replace them with asynchronous calls to ``self.setStateStrings``.

Support for statistics has been moved to the ``BuildStep`` and ``Build`` objects.
Calls to ``self.step_status.setStatistic`` should be rewritten as ``self.setStatistic``.

0 comments on commit 9ff4454

Please sign in to comment.