Closed Bug 693302 Opened 13 years ago Closed 13 years ago

Duplicated output on fennec for windows

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ochameau, Unassigned)

Details

Attachments

(1 file)

I don't know why, but we don't need the stdout file trick on Fennec/Win32!
So that we currently get duplicated stdout: regular one + file.
Attachment #565937 - Flags: review?(warner-bugzilla)
Comment on attachment 565937 [details] [diff] [review]
Do not use logfile trick with fennec on windows

looks good. The only style thing I'd suggest is to enclose the 'if' condition in parentheses instead of using the backslash. So:

  if (sys.platform in ['win32', 'cygwin']
      and not (enable_mobile or app_type in ['fennec'])):
      ....

(I also tend to put the 'and' at the beginning of the second line, instead of at the start of the first, as a reminder to the reader that there's an earlier statement they should pay attention to).

but either way, looks good!
Attachment #565937 - Flags: review?(warner-bugzilla) → review+
Take a look at Bug 692554, where Myk is removing the conditional and using the logfile trick all the time, which will conflict with this. I suspect that the "redirect runner output to /dev/null" change in that patch may fix your problem here, so I'd suggest applying his patch and see if that removes the need for this one, before landing this.
This landed as part of https://github.com/mozilla/addon-sdk/commit/1caff283e90eacff1ab34ae4eda8f6dfb4901325
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: