-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup and unittest Object, Log, Reporter and ReporterMany #103
Conversation
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
23bebbb
to
6057fd0
Compare
Refer to this link for build results (access rights to CI server needed): |
@ned21 any toughts on this? (esp the modified log format) |
|
||
closes the log file. | ||
closes the log file, returns SUCCESS on succes, undef otherwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: success
@stdweird sorry it took my so long to get round to reviewing this it seems the new log format was reverted anyway? |
79838ca
to
d1d67ea
Compare
41e1f6f
to
64ab71f
Compare
…fference between Reporter and ReporterMany very clear).
…hemself during global cleanup.
f3a9b5a
to
0f36555
Compare
LGTM |
@ned21 ping |
@@ -173,8 +172,8 @@ sub close | |||
keeps_state => 1); | |||
$cmd->execute(); | |||
*$self->{LOG}->verbose ("Changes to ", *$self->{filename}, ":"); | |||
$diff = "" if (! defined($diff)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this cause report to log an empty line or is it suppressed by the logging stack? Is an empty line the right way of indicating an empty diff or should we print something standardised such as "(no changes)" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is to get rid of some 'undefined' warnings (and i think only in the unittests). there's also #119 to handle empty diffs
Aside from the one question I think this is good to merge. |
Cleanup and unittest Object, Log, Reporter and ReporterMany
This is preparation for #100 and #93
Fixes #102 (not via removal, but through proper subclass of
Reporter
)minor backwards incompatibility:
setup_reporter
behavioursetup_reporter
(i.e. it will report things withoutsetup_reporter
being called if globalReporter::_REP_SETUP
is set to do so).