Bug 13408 - ptest reports contain corrupted lines
Summary: ptest reports contain corrupted lines
Status: CLOSED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: 0.0.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.7.2
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-19 11:50 UTC by Ross Burton
Modified: 2019-09-26 15:35 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
.