Merge lp://staging/~dpb/charm-tools/allow-juju-home into lp://staging/charm-tools/1.2

Proposed by David Britton
Status: Merged
Merged at revision: 325
Proposed branch: lp://staging/~dpb/charm-tools/allow-juju-home
Merge into: lp://staging/charm-tools/1.2
Diff against target: 187 lines (+25/-21)
2 files modified
charmtools/test.py (+11/-9)
tests/test_juju_test.py (+14/-12)
To merge this branch: bzr merge lp://staging/~dpb/charm-tools/allow-juju-home
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Review via email: mp+222532@code.staging.launchpad.net

Description of the change

Pass environment to all commands juju-test calls.

- Clean up a couple None defaults to juju_env in the bootstrap codepath (unested, and broken)

- Since self.env is already whitelisted and modifiable by the admin, just pass `env=self.env` around to commands.

- The juju version command is too isolated, so I chose to pass on that one.

- Modify tests to expect new call pattern.

- change encoding of file to utf-8, since there are Unicode characters embedded in it.

To post a comment you must log in.
327. By David Britton

fixing lp:1297001

328. By David Britton

remove stray comma causing a diff highlight

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

LGTM, +1!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: