Extra newline characters in test case results

Bug #1040753 reported by Javier Collado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
Fix Released
Low
Javier Collado

Bug Description

When running test cases through the utah client, extra newline characters are appended to the output in the report. For example instead of:
INFO: Opening file '/tmp/a' for writing...
INFO: Checking if the file opened...
INFO: Writing 'a' to '/tmp/a'...
INFO: Closing file...
INFO: Opening file '/tmp/a' for reading...
INFO: Checking if the file opened...
INFO: Reading file contents...
INFO: Closing file...
.
----------------------------------------------------------------------
Ran 1 test in 0.001s

OK

the output in the report is:

  stderr: 'INFO: Opening file ''/tmp/a'' for writing...

    INFO: Checking if the file opened...

    INFO: Writing ''a'' to ''/tmp/a''...

    INFO: Closing file...

    INFO: Opening file ''/tmp/a'' for reading...

    INFO: Checking if the file opened...

    INFO: Reading file contents...

    INFO: Closing file...

    .

    ----------------------------------------------------------------------

    Ran 1 test in 0.000s

    OK

    '

The expected result would be to get the same output as when the test case script is executed in a terminal.

Related branches

Revision history for this message
Javier Collado (javier.collado) wrote :

This is an issue related to the way long strings are encoded in yaml.

One good solution would be to work on the to print literal blocks as explained here:
http://stackoverflow.com/q/6432605/183066

Changed in utah:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Javier Collado (javier.collado)
status: Triaged → In Progress
Changed in utah:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.