Skip to content

Commit

Permalink
Merge pull request #1435 from benallard/patch-1
Browse files Browse the repository at this point in the history
Trial: Improve memory handling ...
  • Loading branch information
Mikhail Sobolev committed Dec 11, 2014
2 parents 6d084c7 + 56cc906 commit cfab602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions master/buildbot/steps/python_twisted.py
Expand Up @@ -371,7 +371,7 @@ def __init__(self, reactor=UNSPECIFIED, python=None, trial=None,
# handled in TrialTestCaseCounter.
self.addLogObserver(
'stdio', logobserver.LineConsumerLogObserver(self.logConsumer))
self.problems = ""
self.problems = []
self.warnings = {}

# text used before commandComplete runs
Expand Down Expand Up @@ -534,11 +534,11 @@ def logConsumer(self):
if line.find("=" * 60) == 0 or line.find("-" * 60) == 0:
# read to EOF
while True:
self.problems += line + "\n"
self.problems.append(line)
stream, line = yield

def createSummary(self, loog):
problems = self.problems
problems = '\n'.join(self.problems)
warnings = self.warnings

if problems:
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/test/unit/test_steps_python_twisted.py
Expand Up @@ -196,7 +196,7 @@ def test_run_failure(self):
+ 1
)
self.expectOutcome(result=FAILURE, state_string='tests 8 failures (failure)')
self.expectLogfile('problems', failureLog.split('\n\n', 1)[1])
self.expectLogfile('problems', failureLog.split('\n\n', 1)[1][:-1])
self.expectLogfile('warnings', textwrap.dedent('''\
buildbot.test.unit.test_steps_python_twisted.Trial.test_run_env_nodupe ... [FAILURE]/home/dustin/code/buildbot/t/buildbot/master/buildbot/test/fake/logfile.py:92: UserWarning: step uses removed LogFile method `getText`
buildbot.test.unit.test_steps_python_twisted.Trial.test_run_env_supplement ... [FAILURE]/home/dustin/code/buildbot/t/buildbot/master/buildbot/test/fake/logfile.py:92: UserWarning: step uses removed LogFile method `getText`
Expand Down

0 comments on commit cfab602

Please sign in to comment.