Merge lp:~mandel/ubuntuone-dev-tools/squid-errors into lp:ubuntuone-dev-tools
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Sidnei da Silva on 2012-04-20 | ||||
| Approved revision: | 68 | ||||
| Merged at revision: | 66 | ||||
| Proposed branch: | lp:~mandel/ubuntuone-dev-tools/squid-errors | ||||
| Merge into: | lp:ubuntuone-dev-tools | ||||
| Diff against target: |
82 lines (+38/-3) 2 files modified
ubuntuone/devtools/services/squid.py (+6/-1) ubuntuone/devtools/services/tests/test_squid.py (+32/-2) |
||||
| To merge this branch: | bzr merge lp:~mandel/ubuntuone-dev-tools/squid-errors | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sidnei da Silva (community) | Approve on 2012-04-20 | ||
| dobey (community) | Approve on 2012-04-20 | ||
| Diego Sarmentero (community) | 2012-04-20 | Approve on 2012-04-20 | |
|
Review via email:
|
|||
Commit Message
- Read the stdout and stderr pipes when we cannot launch squid to give more information to the user (LP: #985004).
Description of the Change
- Read the stdout and stderr pipes when we cannot launch squid to give more information to the user (LP: #985004).
| dobey (dobey) wrote : | # |
77 + ex = self.assertRais
78 + self.runner.
In the diff, this second line is spaced over very far to the right. Why is that?
12 + msg = 'Could not start squid: %s, %s' % (output, err)
I don't think this formatting is correct. As stdout and stderr may contain multiple lines, this formatting will reduce readability slightly. I think you should do "\n%s\n%s" instead of "%s, %s" here.
| Sidnei da Silva (sidnei) wrote : | # |
Erm, what's wrong with StringIO? If you look at the source, it works just like your Pipe() object, except it appends to a list instead of using += for string concatenation, which is about an order of magnitude faster.
- 65. By Manuel de la Peña on 2012-04-20
-
Use StringIO for the Pipe and made a better exception message.
- 66. By Manuel de la Peña on 2012-04-20
-
Use a more tranditional indentation.
- 67. By Manuel de la Peña on 2012-04-20
-
New lines, new linesvim ubuntuone/
devtools/ services/ tests/test_ squid.py - 68. By Manuel de la Peña on 2012-04-20
-
Added spaces.

+1