Bug 13408

Summary: ptest reports contain corrupted lines
Product: [QA/Testing] Package Testing (ptest) Reporter: Ross Burton <ross.burton>
Component: ptestAssignee: Armin Kuster <akuster>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: randy.macleod, richard.purdie
Version: 0.0.0   
Target Milestone: 2.7.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2019-06-19 11:50:43 UTC
When some tests fail the ptest report is corrupted: instead of listing the test that failed, it reports:

    ptestresult.glib-2.0.glib/resources.test__Child_process_killed_by_signal_6_

Some of that line is the message, not the test name.
Comment 1 Ross Burton 2019-06-19 11:54:43 UTC
For that exact instance:

GLib-GIO:ERROR:../glib-2.60.3/gio/tests/resources.c:582:test_resource_binary_linked: 'found' should be TRUE
Bail out! GLib-GIO:ERROR:../glib-2.60.3/gio/tests/resources.c:582:test_resource_binary_linked: 'found' should be TRUE
FAIL: glib/resources.test (Child process killed by signal 6)

So the code to parse the FAIL line should ignore the stuff in brackets.
Comment 2 Richard Purdie 2019-06-20 14:51:45 UTC
Fixed in master, possible backport: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=85075b80d610d5ced47d909b8efe1ee531db0c71
Comment 4 Armin Kuster 2019-09-26 15:35:55 UTC
.