File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 4141from nose .plugins .attrib import attr
4242
4343import uuid
44-
44+ import unittest
4545
4646class 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 ,
You can’t perform that action at this time.
0 commit comments