Commit 9834518d authored by Alain Takoudjou's avatar Alain Takoudjou

update tests

parent 3a41efec
...@@ -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
......
...@@ -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)
......
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 to comment