Closed Bug 769623 Opened 12 years ago Closed 12 years ago

autobinscope.py uses win line endings and doesn't dump failure logs

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla16

People

(Reporter: jimm, Assigned: jimm)

Details

Attachments

(2 files)

      No description provided.
no code changes, just stripping out the wrong line endings.
Attachment #637860 - Flags: review?(khuey)
When this fails we should dump the binscope log into the tinderbox logs for easy debugging.
Attachment #637861 - Flags: review?(khuey)
Comment on attachment 637861 [details] [diff] [review]
dump binscope log on failure

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

::: build/win32/autobinscope.py
@@ +71,4 @@
>    print "TEST-UNEXPECTED-FAIL | autobinscope.py | %s is missing a needed Windows protection, such as /GS or ASLR" % binary_path
> +  logfile = open(log_file_path, "r")
> +  for line in logfile:
> +    print(line),

Extraneous comma?
Attachment #637861 - Flags: review?(khuey) → review+
> > +    print(line),
> 
> Extraneous comma?

nope, this avoids double spacing each line. I guess print adds it's own return character, and the log has those as well.
https://hg.mozilla.org/mozilla-central/rev/2a31f6253167
https://hg.mozilla.org/mozilla-central/rev/05a436f462e7
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: