Merge lp:~bladernr/checkbox/1621986-virt-accept-urls into lp:checkbox
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | 4494 |
Merged at revision: | 4493 |
Proposed branch: | lp:~bladernr/checkbox/1621986-virt-accept-urls |
Merge into: | lp:checkbox |
Diff against target: |
206 lines (+60/-74) 2 files modified
providers/plainbox-provider-checkbox/bin/virtualization (+60/-50) providers/plainbox-provider-checkbox/jobs/virtualization.txt.in (+0/-24) |
To merge this branch: | bzr merge lp:~bladernr/checkbox/1621986-virt-accept-urls |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Jeff Lane | Approve | ||
Review via email: mp+305491@code.launchpad.net |
Description of the change
--image and the config file cna now accept the following items:
http://
- relative URL and script will find files in the same format as cloud-images.
http://
- Absolute URL to an image with an arbitrary name.
file://
- URL for local filesystem path to image needed
/path/to/
- absolute local path to image needed
THe web URLs can point to ANY arbitrary location that has the cloud image we need. THe first one is intended for local mirrors of cloud-image, thelatter to call out any cloud image you want to boot as test.
Also, if you provide NONE of these, the default behaviour remains in that the script will go to cloud-images.
The above can be passed via the --image option:
./virtualization kvm --image http://
or via ENV Var as defined in /etc/xdg/
Additionally, I did some PEP8 cleanup, and removed a vestigal XenTest class that will never be used.
Thanks a lot for this url option, just one thing though. If you remove the xen class, please also remove the virtualization/xen* jobs from jobs/virtualiza tion.txt. in