Closed Bug 1190975 Opened 9 years ago Closed 9 years ago

Do not dump logcat or device info when Android mochitests are run from mach

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(1 file)

runtestsremote.py dumps verbose device information (process list, etc) and the logcat whenever mochitests are run. In treeherder logs, this is sometimes useful and important; when mochitests are run locally, it seems more of a bother: test results are lost in the stream of excess information.

A few weeks ago, I changed the robocop test harness to not dump device info or logcat when run from mach. I find the change delightful: Test results are clearly visible without scrolling or grep-ing; if device info or logcat are required, I just use adb.

Let's update runtestsremote.py to not dump device info or logcat when run from mach, so Android mochitests logs behave like robocop.

I would like to do the same for reftests, but there are complications; I'll leave that for another bug.
Just like robocop -- do not dump device info if options.log_mach is set.
Attachment #8643172 - Flags: review?(jmaher)
Comment on attachment 8643172 [details] [diff] [review]
do not log device info when mochitests run from mach

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

thanks!
Attachment #8643172 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/3f2f8b2f8ef4
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: