Merge lp:~jml/launchpad/better-subunit-attachment into lp:launchpad
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~jml/launchpad/better-subunit-attachment |
Merge into: | lp:launchpad |
Diff against target: |
101 lines (+51/-14) 1 file modified
lib/devscripts/ec2test/ec2test-remote.py (+51/-14) |
To merge this branch: | bzr merge lp:~jml/launchpad/better-subunit-attachment |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+23786@code.launchpad.net |
Description of the change
This patch changes ec2 test and ec2 land so that they compress the subunit log before attaching it to the summary email. This works around bug 505078 in subunit by hiding the easily-mangleable newlines in a compressed binary file.
To do this, I extracted a send_email method. I stopped using bzrlib's convenience functions for sending mail, since they are all about text.
I've tested this by deliberately breaking a test, running it through ec2 and looking through the email it sent. It all works, and the attachment is 110k rather than 2M, which is nice.
jml
To post a comment you must log in.
The branch looks good Jono. The only style issue I saw was your lack of punctuation on code comments. Please end them with full stops.
I look forward to using ec2 test to see the new output.