Commit d53e59f6 by Szeberényi Imre

Merge branch 'vm-test' into 'master'

Vmdriver test fix

See merge request !2
parents b036bf5b d9362ecc
...@@ -16,3 +16,4 @@ smmap==5.0.0 ...@@ -16,3 +16,4 @@ smmap==5.0.0
typing_extensions==4.0.1 typing_extensions==4.0.1
vine==5.0.0 vine==5.0.0
zipp==3.6.0 zipp==3.6.0
nose==1.3.7
#!/usr/bin/env python #!/usr/bin/env python
import os
os.environ.setdefault("LIBVIRT_TEST", "True")
import vm import vm
import vmdriver import vmdriver
# import logging # import logging
......
...@@ -192,6 +192,7 @@ class VMDisk: ...@@ -192,6 +192,7 @@ class VMDisk:
target_device = None target_device = None
def __init__(self, def __init__(self,
name,
source, source,
disk_type="file", disk_type="file",
disk_device="disk", disk_device="disk",
...@@ -200,6 +201,7 @@ class VMDisk: ...@@ -200,6 +201,7 @@ class VMDisk:
driver_cache="none", driver_cache="none",
target_device="vda", target_device="vda",
target_bus="virtio"): target_bus="virtio"):
self.name = name
self.source = source self.source = source
self.disk_type = disk_type self.disk_type = disk_type
self.disk_device = disk_device self.disk_device = disk_device
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment