Add TestVM.is_halted() to fix failing tests

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-13 21:33:12 +02:00
parent 6fad722554
commit 774cbd499e
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE
2 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,12 @@ class TestVM(qubes.vm.BaseVM):
netid = qid
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
def is_halted(self):
return False
def get_power_state():
return "Halted"
class TestApp(qubes.tests.TestEmitter):
pass

View File

@ -293,6 +293,12 @@ class TestVM(qubes.vm.BaseVM):
netid = qid
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
def is_halted(self):
return False
def get_power_state():
return "Halted"
class TestApp(qubes.tests.TestEmitter):
pass