Closed Bug 1072650 Opened 10 years ago Closed 10 years ago

Fix giant wall of logcat output when connection times out

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla35

People

(Reporter: mdas, Assigned: mdas)

References

Details

Attachments

(1 file)

We've been seeing giant walls of logcat output when the Marionette connection times out during a test (example: Bug 1056626) when it should just find the most recent 5 errors from logcat. Turns out this happened due to Bug 1050211, so we'll need a work around for now.
Attached patch workaroundSplinter Review
I added a check for "IOError" in case other IO errors are thrown. We should investigate in that case.

This fix should make the sheriffs a little less mad.
Attachment #8494848 - Flags: review?(dburns)
Comment on attachment 8494848 [details] [diff] [review]
workaround

Review of attachment 8494848 [details] [diff] [review]:
-----------------------------------------------------------------

Other than my comment this is good to go

::: testing/marionette/client/marionette/runner/mixins/b2g.py
@@ +74,4 @@
>                  error_re = re.compile(r"""[\s\S]*(exception|error)[\s\S]*""",
>                                        flags=re.IGNORECASE)
>                  logcat = device_manager.getLogcat()
> +                # Due to Bug 1050211 

the dreaded white-space-at-the-end-of-the-line is here... we need to remove it before it spreads!
Attachment #8494848 - Flags: review?(dburns) → review+
https://hg.mozilla.org/mozilla-central/rev/9940643b4eab
Assignee: nobody → mdas
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: