From 774cbd499e25415566e089ef3fadf7e830403b2b Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Wed, 13 Jul 2016 21:33:12 +0200 Subject: [PATCH] Add TestVM.is_halted() to fix failing tests --- qubes/tests/app.py | 6 ++++++ qubes/tests/init.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/qubes/tests/app.py b/qubes/tests/app.py index 0c81d733..ea1d7e95 100644 --- a/qubes/tests/app.py +++ b/qubes/tests/app.py @@ -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 diff --git a/qubes/tests/init.py b/qubes/tests/init.py index 6969afc0..d8ffa324 100644 --- a/qubes/tests/init.py +++ b/qubes/tests/init.py @@ -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