Closed Bug 907923 Opened 13 years ago Closed 13 years ago

Fix mozharness parsing of cppunittest output

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dminor, Assigned: dminor)

Details

Attachments

(1 file, 1 obsolete file)

Currently the output parser in desktop_unittest.py decides that the cpp unittests fail collectively despite all of the tests passing individually. I think this is due to the word 'WARNING' showing up in the test output, but it might be something else. The rununittest.py script itself returns 0 for success and 1 otherwise, but I don't want to ignore the parser completely and lose the ability to correctly recognize crashes and other problems.
Updating summary as the changes to the parser required are in unittest.py and errors.py, not desktop_unittest.py.
Summary: Fix mozharness desktop_unittest.py to parse cppunittest output properly → Fix mozharness parsing of cppunittest output
I've added a regex for cppunittests and also changed the pass/fail count logic to handle test harnesses that do not keep track of these numbers.
Assignee: nobody → dminor
Status: NEW → ASSIGNED
Attachment #794033 - Flags: review?(aki)
Comment on attachment 794033 [details] [diff] [review] Patch to handle parsing cppunittest output Discussed in IRC: I think a preferable solution would be to get the cpp test harness to behave similarly to the others. If we hit issues with that, we still have this approach as a second option.
Attachment #794033 - Flags: review?(aki)
Bug 908644 adds the summary to cppunittest we parse with this patch.
Attachment #794033 - Attachment is obsolete: true
Attachment #794788 - Flags: review?(aki)
Comment on attachment 794788 [details] [diff] [review] Patch to add support to parse cppunittest output. Thanks!
Attachment #794788 - Flags: review?(aki) → review+
Comment on attachment 794788 [details] [diff] [review] Patch to add support to parse cppunittest output. https://hg.mozilla.org/build/mozharness/rev/008b723bdd3a
Attachment #794788 - Flags: checked-in+
In production
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: General Automation → Mozharness
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: