From 81dbe3628f3b4f972a44a7b169e64cdf76713c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 10 Feb 2016 19:45:44 +0100 Subject: [PATCH] tests: skip system tests if not in dom0 --- qubes/tests/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index af1d296c..645c3d13 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -371,6 +371,8 @@ class SystemTestsMixin(object): """ # noinspection PyAttributeOutsideInit def setUp(self): + if not in_dom0: + self.skipTest('outside dom0') super(SystemTestsMixin, self).setUp() self.remove_test_vms() @@ -423,6 +425,8 @@ class SystemTestsMixin(object): @classmethod def tearDownClass(cls): super(SystemTestsMixin, cls).tearDownClass() + if not in_dom0: + return cls.remove_test_vms(xmlpath=CLASS_XMLPATH, prefix=CLSVMPREFIX) @staticmethod