Merge lp:~thomir-deactivatedaccount/autopilot/fix-autopilot-import-issues into lp:autopilot
Status: | Merged |
---|---|
Approved by: | Christopher Lee |
Approved revision: | 70 |
Merged at revision: | 68 |
Proposed branch: | lp:~thomir-deactivatedaccount/autopilot/fix-autopilot-import-issues |
Merge into: | lp:autopilot |
Diff against target: |
224 lines (+54/-28) 2 files modified
autopilot/tests/test_autopilot_functional.py (+37/-25) bin/autopilot (+17/-3) |
To merge this branch: | bzr merge lp:~thomir-deactivatedaccount/autopilot/fix-autopilot-import-issues |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Lee (community) | Approve | ||
jenkins (community) | continuous-integration | Approve | |
Review via email: mp+123475@code.launchpad.net |
Commit message
Fix autopilot test import behavior to be more convenient, and work around an odd bug inside the unittest module.
Description of the change
This branch changes the autopilot behavior in a couple of important ways:
First, it adds the current working directory to the python module search path (i.e.- sys.path). This means that in order to run a particular set of tests, you now just need to: cd into the directory that contains the tests, and run 'autopilot run testpackagename' - no mode mucking about with PYTHONPATH variables.
Second, it's reasonably common to have several instances of the same test suite on a developers machine. Autopilot now tells you where it's loading tests from for both the 'list' and 'run' commands.
The existing tests around the 'autopilot list' functionality have been modified to cope with this new feature.
PASSED: Continuous integration, rev:68 s-jenkins: 8080/job/ autopilot- ci/75/ s-jenkins: 8080/job/ autopilot- ci/./distributi on=precise, flavor= amd64/75/ console s-jenkins: 8080/job/ autopilot- ci/./distributi on=precise, flavor= i386/75/ console
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://