Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Mowinski committed Apr 23, 2018
1 parent 246eca8 commit 408fcbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion master/buildbot/status/web/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,11 @@ def __prepare_context(self, request, cxt=None):
start, end = self.build_status.getTimes()
context['start'] = time.ctime(start)
context['end'] = time.ctime(end) if end else None
context['elapsed'] = None
if not end:
end = util.now()
context['elapsed'] = util.formatInterval(end - start)
if start:
context['elapsed'] = util.formatInterval(end - start)

context['authz'] = self.getAuthz(request)
context['has_changes'] = False
Expand Down
4 changes: 2 additions & 2 deletions master/buildbot/test/unit/test_status_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def getTimes(self):
def getResults(self):
return self.results

def prepare_trigger_links(self):
pass
def prepare_trigger_links(self, codebases_arg):
return []


class TestBuildStepsUtils(unittest.TestCase):
Expand Down

0 comments on commit 408fcbd

Please sign in to comment.