[Buildbot] #3516: Windows newlines in build logs are interpreted as two consecutive newlines

Buildbot trac trac at buildbot.net
Sat Apr 16 11:42:49 UTC 2016


#3516: Windows newlines in build logs are interpreted as two consecutive newlines
---------------------+------------------------
Reporter:  ngladitz  |       Owner:
    Type:  defect    |      Status:  new
Priority:  major     |   Milestone:  undecided
 Version:  0.9.0b7   |  Resolution:
Keywords:            |
---------------------+------------------------

Comment (by ngladitz):

 I created a gist with a python test project that doesn't rely on ctest:
   https://gist.github.com/ngladitz/2c9609f9f660105ccc9a23766183af3f

 I used the following setup in master.cfg for the test:
 {{{
 factory = util.BuildFactory()
 factory.addStep(steps.Git(repourl='https://gist.github.com/2c9609f9f660105ccc9a23766183af3f.git'))
 factory.addStep(steps.ShellCommand(command=["python", "test.py"]))
 }}}

 When testing with a linux worker I get the expected 6 lines:
 {{{
 Line1
 Line2
 Line3
 Line4
 Line5
 Line6
 }}}

 With a windows worker I however get two additional newlines:
 {{{
 Line1
 Line2
 Line3

 Line4

 Line5
 Line6
 }}}

 So newline folding does seem to work on linux but not windows for some
 reason.

 When I download the windows build stdio log from the web-ui the file
 contains only \n newlines.

 Perhaps something on windows translates \r\n into \n\n before proper
 folding takes place?

--
Ticket URL: <http://trac.buildbot.net/ticket/3516#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list