NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/44497: atf-report does not handle ^M



>Number:         44497
>Category:       bin
>Synopsis:       atf-report does not handle ^M
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 31 13:05:00 +0000 2011
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
>Description:
atf-report parser fails with dos-style newlines:

> atf-report < root.tests.log 
terminate called after throwing an instance of 'atf::parser::parse_errors'
'; expected eof, `;' or new line
2: Unexpected token `<<NEWLINE>>'; expected `:'
3: Unexpected token `Automated'; expected eof, `;' or new line
'; expected eof, `;' or new line
5: Unexpected token `Fri'; expected eof, `;' or new line
'; expected eof, `;' or new line
[....]
Abort (core dumped)

>How-To-Repeat:
Receive a tests.log with dos-style newlines, scratch head
(especially since less(1) filters the ^M's out).  Finally
use vis(1) and locate the problem:

Content-Type: application/X-atf-tps; version="2"\^M
\^M
....
>Fix:



Home | Main Index | Thread Index | Old Index