GNOME Bugzilla – Bug 574053
Failures log pass=0 and pass = 1 and they do not log the message
Last modified: 2011-02-05 00:49:33 UTC
Please describe the problem: Using ldtprunner When trying to log a failure a have in my code: logFailures ("Files differ.", True, "fail") And in the log this is what I get: <test> [...] <pass>0</pass> <screenshot>screenshots/screenshot-03-04-2009-12-32-1236166332.png</screenshot> <pass>1</pass> </test> The message with "Files differ" does not get logged and there are two entries for the <pass> tag, one with 0 and the other with 1. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Yes Other information:
Created attachment 130937 [details] [review] this suggests a fix to log_passorfail_usability
I could see in ldtp's log feature design, internalLog('some msg','pass') or internalLog('some msg','fail') would be set as a format of <pass>1(0)</pass>. This directly cast away the message you want to send. I would prefer the <pass> some_msg </pass>, so adding a patch here : )
This functionality is now moved to Mago, closing the bug