Merge lp://staging/~gmb/maas-test/dont-report-successes into lp://staging/maas-test
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | 115 |
Merged at revision: | 115 |
Proposed branch: | lp://staging/~gmb/maas-test/dont-report-successes |
Merge into: | lp://staging/maas-test |
Diff against target: |
207 lines (+56/-65) 3 files modified
maastest/main.py (+5/-2) maastest/report.py (+25/-23) maastest/tests/test_report.py (+26/-40) |
To merge this branch: | bzr merge lp://staging/~gmb/maas-test/dont-report-successes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Disapprove | ||
Raphaël Badin (community) | Approve | ||
Review via email: mp+201019@code.staging.launchpad.net |
Commit message
Only report to Launchpad on failure; always log on success (unless told otherwise).
Description of the change
This branch changes the way that reporting works so that we only report to Launchpad on failure, but always store the test results unless told not to.
To post a comment you must log in.
Looks good.
On the one hand, I think that the code is better structured this way (having the control of whether or not things are logged in the main execution flow and all the actual work done in helper methods) but on the other hand, it means part of the code escaped in non-tested territory. Oh well, this is still probably for the best.
[0]
96 + "Visit https:/ /bugs.launchpad .net/maas/ +filebug/ %s "
97 + "to file a bug and complete the maas-test reporting process."
Btw, this is unrelated to this change but I was wondering if we could pre-fill the title of the bug somehow. Do you know if it's possible? If it is, it would be nice because —unless the user changes it of course— it would enable us to quickly spot if a bug has been submitted because of a failed maas-test run; it would be even better if we could attach a tag to it.