tests: skip some tests not supported on Whonix
This commit is contained in:
parent
3599249e2d
commit
7eb881c6ba
@ -200,6 +200,9 @@ class TC_00_List(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase):
|
||||
self.fail("Device {} not found in {!r}".format('test-dm', dev_list))
|
||||
|
||||
def test_013_list_dm_removed(self):
|
||||
if self.template is None:
|
||||
self.skipTest('test not supported in dom0 - loop devices excluded '
|
||||
'in dom0')
|
||||
self.run_script(
|
||||
"set -e;"
|
||||
"truncate -s 128M {path}; "
|
||||
|
@ -100,6 +100,10 @@ enabled = 1
|
||||
|
||||
def setUp(self):
|
||||
super(TC_00_Dom0UpgradeMixin, self).setUp()
|
||||
if self.template.startswith('whonix-'):
|
||||
# Whonix redirect all the traffic through tor, so repository
|
||||
# on http://localhost:8080/ is unavailable
|
||||
self.skipTest("Test not supported for this template")
|
||||
self.updatevm = self.qc.add_new_vm(
|
||||
"QubesProxyVm",
|
||||
name=self.make_vm_name("updatevm"),
|
||||
|
@ -54,6 +54,9 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin):
|
||||
|
||||
def setUp(self):
|
||||
super(VmNetworkingMixin, self).setUp()
|
||||
if self.template.startswith('whonix-'):
|
||||
self.skipTest("Test not supported here - Whonix uses its own "
|
||||
"firewall settings")
|
||||
self.testnetvm = self.qc.add_new_vm("QubesNetVm",
|
||||
name=self.make_vm_name('netvm1'),
|
||||
template=self.qc.get_vm_by_name(self.template))
|
||||
|
@ -785,6 +785,8 @@ class TC_00_AppVMMixin(qubes.tests.SystemTestsMixin):
|
||||
|
||||
def test_210_time_sync(self):
|
||||
"""Test time synchronization mechanism"""
|
||||
if self.template.startswith('whonix-'):
|
||||
self.skipTest('qvm-sync-clock disabled for Whonix VMs')
|
||||
self.testvm1.start()
|
||||
self.testvm2.start()
|
||||
(start_time, _) = subprocess.Popen(["date", "-u", "+%s"],
|
||||
|
Loading…
Reference in New Issue
Block a user