Merge lp:~soren/glance/glance-upload-sys.path into lp:~glance-coresec/glance/cactus-trunk
Status: | Merged |
---|---|
Approved by: | Jay Pipes |
Approved revision: | 77 |
Merged at revision: | 77 |
Proposed branch: | lp:~soren/glance/glance-upload-sys.path |
Merge into: | lp:~glance-coresec/glance/cactus-trunk |
Diff against target: |
19 lines (+9/-0) 1 file modified
bin/glance-upload (+9/-0) |
To merge this branch: | bzr merge lp:~soren/glance/glance-upload-sys.path |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Approve | ||
Review via email: mp+51501@code.launchpad.net |
Commit message
Add sys.path mangling to glance-upload.
Description of the change
Add the same sys.path mangling stuff to glance-upload that is in the other bin/*.
This fixes the following test failure in clean environments:
=======
FAIL: test_exception_
-------
Traceback (most recent call last):
File "/build/
"result from glance-
AssertionError: Could not find 'Invalid image type' in result from glance-upload:
Command ./bin/glance-upload --port=32001 --type=invalid /tmp/tmpEd3FfR 'my image' did not succeed. Returned an exit code of 1.
STDOUT:
STDERR: Traceback (most recent call last):
File "./bin/
from glance.client import Client
ImportError: No module named glance.client
nice catch, thx soren.