Merge lp://qastaging/~rvb/maas-test/apache-timeout into lp://qastaging/maas-test
Proposed by
Raphaël Badin
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Raphaël Badin | ||||
Approved revision: | 98 | ||||
Merged at revision: | 97 | ||||
Proposed branch: | lp://qastaging/~rvb/maas-test/apache-timeout | ||||
Merge into: | lp://qastaging/maas-test | ||||
Diff against target: |
206 lines (+116/-12) 4 files modified
maastest/maasfixture.py (+10/-2) maastest/tests/test_maasfixture.py (+78/-4) maastest/tests/test_utils.py (+17/-0) maastest/utils.py (+11/-6) |
||||
To merge this branch: | bzr merge lp://qastaging/~rvb/maas-test/apache-timeout | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+199257@code.qastaging.launchpad.net |
Commit message
Try to restart apache2 a couple of time before giving up.
To post a comment you must log in.
It's a shame we can't get to the root cause right now, but it does look as if it may be in the Apache package somewhere...
A few notes as always:
.
An alternative way to make tests ignore the "rewrite configuration" command might be to extract that command into a separate function, and have the test patch out that function. Probably not worth it here though, but it's a recurring problem when invoking shell commands.
.
I think test_configure_ default_ maas_url_ fails_apache_ cannot_ restart is missing an "if" in the name. Should still just barely fit on a line!
.
Perhaps make_exception() could decode as UTF-8? It's a reasonable guess, and text that isn't UTF-8 is highly unlikely to decode cleanly as UTF-8. The disadvantage would be that non-ASCII errors might be handled well only as long as they were in UTF-8, which might end up hiding mistakes from us or confronting people far away with more difficult errors than we see.