Skip to content

Commit

Permalink
Merge pull request mozilla-services#2871 from twobraids/no-newline-jit
Browse files Browse the repository at this point in the history
NO BUG - removed LF from output of jit categorizer
  • Loading branch information
rhelmer committed Jun 26, 2015
2 parents fdd528a + 4d4f95d commit ef61683
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion socorro/processor/breakpad_transform_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def _predicate(self, raw_crash, raw_dumps, processed_crash, proc_meta):
#--------------------------------------------------------------------------
def _interpret_external_command_output(self, fp, processor_meta):
try:
return fp.read()
result = fp.read()
except IOError, x:
processor_meta.processor_notes.append(
"%s unable to read external command output: %s" % (
Expand All @@ -717,3 +717,8 @@ def _interpret_external_command_output(self, fp, processor_meta):
)
)
return ''
try:
return result.strip()
except AttributeError, x:
# there's no strip method
return result
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def test_stackwalker_fails(self, mocked_subprocess_module):

mocked_subprocess_handle = \
mocked_subprocess_module.Popen.return_value
mocked_subprocess_handle.stdout.read.return_value = '{}'
mocked_subprocess_handle.stdout.read.return_value = '{}\n'
mocked_subprocess_handle.wait.return_value = 124

rule = BreakpadStackwalkerRule2015(config)
Expand Down

0 comments on commit ef61683

Please sign in to comment.