Merge lp://qastaging/~laney/ubuntu-release-upgrader/testfix into lp://qastaging/ubuntu-release-upgrader
Proposed by
Iain Lane
Status: | Merged |
---|---|
Merged at revision: | 3113 |
Proposed branch: | lp://qastaging/~laney/ubuntu-release-upgrader/testfix |
Merge into: | lp://qastaging/ubuntu-release-upgrader |
Diff against target: |
23 lines (+2/-0) 2 files modified
tests/test_prerequists.py (+1/-0) tests/test_sources_list.py (+1/-0) |
To merge this branch: | bzr merge lp://qastaging/~laney/ubuntu-release-upgrader/testfix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Andres Klode | Approve | ||
Ubuntu Core Development Team | Pending | ||
Review via email:
|
Description of the change
Don't let a system's APT::Default-
I had hoped that you could set Dir::Etc::Parts, but we `import apt' which seems to read the parts already, so setting it from the tests doesn't change anything. This is a pragmatic solution.
To post a comment you must log in.
LGTM.
I was thinking about making this more generic, but this requires a few tricks, but should fully isolate the rootdir, possibly by adding an argument to apt.Cache, like:
apt.Cache(..., config={})
to start a cache with an empty config. Needs changes in python-apt, update-manager, and ubuntu- release- upgrader, but should make things nice. What do you think?