Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d53e59f6
authored
Jun 27, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vm-test' into 'master'
Vmdriver test fix See merge request
!2
parents
b036bf5b
d9362ecc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
requirements/base.txt
+1
-0
tests/test.py
+3
-0
vm.py
+2
-0
No files found.
requirements/base.txt
View file @
d53e59f6
...
@@ -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
tests/test.py
View file @
d53e59f6
#!/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
...
...
vm.py
View file @
d53e59f6
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment