未验证 提交 bc97a1fe 编写于 作者: L Lukáš Doktor

Merging pull request 2389

Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>

* https://github.com/avocado-framework/avocado:
  vmimage: add JeOS Image Provider
......@@ -222,6 +222,25 @@ class DebianImageProvider(ImageProviderBase):
self.image_pattern = 'debian-{version}-openstack-{arch}.qcow2$'
class JeosImageProvider(ImageProviderBase):
"""
JeOS Image Provider
"""
name = 'JeOS'
def __init__(self, version='[0-9]+', build=None,
arch=os.uname()[4]):
# JeOS uses '64' instead of 'x86_64'
if arch == 'x86_64':
arch = '64'
super(JeosImageProvider, self).__init__(version, build, arch)
self.url_versions = 'http://avocado-project.org/data/assets/jeos/'
self.url_images = self.url_versions + '{version}/'
self.image_pattern = 'jeos-{version}-{arch}.qcow2.xz$'
class Image(object):
def __init__(self, name, url, version, arch, checksum, algorithm,
cache_dir):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册