Skip to content

Commit f9bac7d

Browse files
committed
skip all tests if the storage isn't Zone-Wide and the hypervisor isn't KVM
1 parent 88d1dc2 commit f9bac7d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/integration/smoke/test_vm_lifecycle_with_snapshot_or_volume.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from nose.plugins.attrib import attr
4242

4343
import uuid
44-
44+
import unittest
4545

4646
class TestDeployVMFromSnapshotOrVolume(cloudstackTestCase):
4747

@@ -58,8 +58,7 @@ def setUpClass(cls):
5858
cls.hypervisor = testClient.getHypervisorInfo()
5959

6060
if cls.hypervisor.lower() != "kvm":
61-
cls.unsupportedHypervisor = True
62-
return
61+
raise unittest.SkipTest("Only KVM hypervisor is supported for deployment of a VM with volume/snapshot")
6362

6463
cls.template = get_template(
6564
cls.apiclient,
@@ -117,8 +116,8 @@ def setUpClass(cls):
117116
)
118117
cls._cleanup.append(cls.disk_offering)
119118
else:
120-
cls.debug("No zone wide storage found")
121-
return
119+
raise unittest.SkipTest("No zone wide storage found. Skipping tests")
120+
122121

123122
cls.virtual_machine = VirtualMachine.create(
124123
cls.apiclient,

0 commit comments

Comments
 (0)