Bug 478967

Summary: [RFE] include assert's command output in journal
Product: [Fedora] Fedora Reporter: Ales Zelinka <azelinka>
Component: beakerlibAssignee: Petr Muller <pmuller>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jhutar, ohudlick, pmuller, psplicha, qa-errata-list
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 12:50:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 555302    
Bug Blocks:    

Description Ales Zelinka 2009-01-06 10:05:15 UTC
I see journal as the primary source of information on a test run, that should contain all necessary information (see also 473911). All other reports should be derived/generated from it. And because assert command output is an important information, it should be included (see discussion of bug 477138).

As of now assert part of journal looks like this:

<log>
 <phase name="fazicka" result="FAIL" score="1" type="FAIL">
  <test message="Running 'echo abc' (Expected 2-7-3-5, got 0)">FAIL</test>
 </phase>
</log>

after output inclusion:

<log>
 <phase name="fazicka" result="FAIL" score="1" type="FAIL">
  <test message="Running 'echo abc' (Expected 2-7-3-5, got 0) result="FAIL">
abc
  </test>
 </phase>
</log>

Comment 1 Petr Muller 2009-01-12 15:17:09 UTC
Huh, is this really a good idea? Some outputs can be pretty huge and I would like to keep the journal human readable... But you are definitely right, this should be stored somewhere... 
I'm thinking about an alternate solution, by creating something like a "output log" supplement to the journal, where we would put the rlRun command's output, and the journal would contain a link of some sort to this supplemental log. It's just a quick thought from the top of my head - and it's a bit "cosmetic" compared to your original proposal...

Comment 2 Jan Hutař 2009-01-13 09:11:25 UTC
Actually this can be nicely hidden in the journal generated by rlJournalPrintText, but `DEBUG=true rlJournalPrintText` can be another story :)

IMHO journal (XML one) should contain all info generated by the test.

Comment 3 Petr Šplíchal 2009-01-20 09:07:54 UTC
Seems to me a good idea to include all test related output in the journal. Perhaps we should just set up some reasonable limit X to prevent the journal to grow too much (maybe include head -X and tail -X or grep -i FAIL when logs are really very long, e.g. for compiling). If we need all the output there's always the TESTOUT.log available.

Comment 5 Petr Muller 2013-01-08 12:50:14 UTC

*** This bug has been marked as a duplicate of bug 840618 ***