Skip to content

Commit

Permalink
SERVER-18843 resmoke.py should not summarize all previous executions …
Browse files Browse the repository at this point in the history
…until it finishes
  • Loading branch information
cswanson310 committed Jun 18, 2015
1 parent 4207a94 commit 2632994
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildscripts/resmokelib/testing/executor.py
Expand Up @@ -87,7 +87,7 @@ def run(self):
raise errors.StopExecution("Received interrupt from user")

sb = [] # String builder.
self._test_group.summarize(sb)
self._test_group.summarize_latest(sb)
self.logger.info("Summary: %s", "\n ".join(sb))

if not report.wasSuccessful():
Expand Down
9 changes: 8 additions & 1 deletion buildscripts/resmokelib/testing/testgroup.py
Expand Up @@ -52,9 +52,16 @@ def record_end(self, report):
self._end_times.append(time.time())
self._reports.append(report)

def summarize_latest(self, sb):
"""
Returns a summary of the latest execution of the group and appends a
summary of that execution onto the string builder 'sb'.
"""
return self._summarize_execution(-1, sb)

def summarize(self, sb):
"""
Returns a summary of the exection(s) of the group and appends a
Returns a summary of the execution(s) of the group and appends a
summary of the execution(s) onto the string builder 'sb'.
"""

Expand Down

0 comments on commit 2632994

Please sign in to comment.