Add TestVM.is_halted() to fix failing tests
This commit is contained in:
parent
6fad722554
commit
774cbd499e
@ -42,6 +42,12 @@ class TestVM(qubes.vm.BaseVM):
|
|||||||
netid = qid
|
netid = qid
|
||||||
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
||||||
|
|
||||||
|
def is_halted(self):
|
||||||
|
return False
|
||||||
|
|
||||||
|
def get_power_state():
|
||||||
|
return "Halted"
|
||||||
|
|
||||||
class TestApp(qubes.tests.TestEmitter):
|
class TestApp(qubes.tests.TestEmitter):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -293,6 +293,12 @@ class TestVM(qubes.vm.BaseVM):
|
|||||||
netid = qid
|
netid = qid
|
||||||
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
|
||||||
|
|
||||||
|
def is_halted(self):
|
||||||
|
return False
|
||||||
|
|
||||||
|
def get_power_state():
|
||||||
|
return "Halted"
|
||||||
|
|
||||||
class TestApp(qubes.tests.TestEmitter):
|
class TestApp(qubes.tests.TestEmitter):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user