Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
slapos.toolbox
Commits
9834518d
Commit
9834518d
authored
Feb 08, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tests
parent
3a41efec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
slapos/qemuqmpclient/__init__.py
slapos/qemuqmpclient/__init__.py
+0
-1
slapos/test/test_qemuqmpclient.py
slapos/test/test_qemuqmpclient.py
+1
-1
No files found.
slapos/qemuqmpclient/__init__.py
View file @
9834518d
...
@@ -395,7 +395,6 @@ class QemuQMPWrapper(object):
...
@@ -395,7 +395,6 @@ class QemuQMPWrapper(object):
raise
ValueError
(
"Cannot remove device %s"
%
dev_id
)
raise
ValueError
(
"Cannot remove device %s"
%
dev_id
)
# try soft reboot of the VM
# try soft reboot of the VM
print
"Powering down the VM..."
self
.
powerdown
()
self
.
powerdown
()
system_exited
=
False
system_exited
=
False
# wait for ~10 seconds if the system exit, else quit Qemu
# wait for ~10 seconds if the system exit, else quit Qemu
...
...
slapos/test/test_qemuqmpclient.py
View file @
9834518d
...
@@ -61,7 +61,7 @@ class TestQemuQMPWrapper(unittest.TestCase):
...
@@ -61,7 +61,7 @@ class TestQemuQMPWrapper(unittest.TestCase):
return
int
(
f
.
read
())
return
int
(
f
.
read
())
return
0
return
0
def
fake_send
(
self
,
message
,
check_result
=
False
):
def
fake_send
(
self
,
message
,
retry
=
0
,
sleep
=
0.5
):
self
.
call_stack_list
.
append
(
message
)
self
.
call_stack_list
.
append
(
message
)
if
message
.
get
(
'execute'
,
''
).
startswith
(
'query-'
):
if
message
.
get
(
'execute'
,
''
).
startswith
(
'query-'
):
return
self
.
returnQueryResult
(
message
)
return
self
.
returnQueryResult
(
message
)
...
...
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