Merge lp:~didrocks/ubuntu-webcatalog/oneiric-support into lp:ubuntu-webcatalog
Proposed by
Didier Roche-Tolomelli
Status: | Merged |
---|---|
Merge reported by: | Anthony Lenton |
Merged at revision: | not available |
Proposed branch: | lp:~didrocks/ubuntu-webcatalog/oneiric-support |
Merge into: | lp:ubuntu-webcatalog |
Diff against target: |
52 lines (+25/-8) 1 file modified
fabtasks/bootstrap.py (+25/-8) |
To merge this branch: | bzr merge lp:~didrocks/ubuntu-webcatalog/oneiric-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Canonical ISD hackers | Pending | ||
Review via email: mp+66945@code.launchpad.net |
Description of the change
Support for oneiric.
Didn't make yet a more generic solution to avoir duplication between natty and oneiric as other files are subject to move as well
To post a comment you must log in.
Hi didrocks!
I was away when you proposed this - sorry it took a while to get some feedback.
It's really unfortunate that you had to fiddle with symlinks to set up a dev environment - it shouldn't be the case.
AFAICS, it's only necessary because we're testing the SVG->PNG rendering and that functionality is dependent on installed libs that we can't just put in the python virtualenv. We don't *need* this functionality in a dev server necessarily.
I wonder if a better solution would be to ensure that it is only a single test that requires the library (the code that does the actual rendering is already isolated to a single method, and we can mock that method in any other test), but automatically detect if the required svg->png method is available, and if not, skip the test with a warning or provide a config option to disable the test. That would mean that the test would be run by default (ie. on our jenkins server where the libs are installed - or can be) but the test can be disabled with a local config option (skip_gtk_ render_ tests or whatever). I don't like conditional tests either, but I'd prefer that than the solution we've currently got (which you've had to fiddle with to get tests running on oneiric).
What do you think? I'll chat with Anthony and see what he thinks too.