Commit f9bac7d 1 parent 88d1dc2 commit f9bac7d Copy full SHA for f9bac7d
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 41
41
from nose .plugins .attrib import attr
42
42
43
43
import uuid
44
-
44
+ import unittest
45
45
46
46
class TestDeployVMFromSnapshotOrVolume (cloudstackTestCase ):
47
47
@@ -58,8 +58,7 @@ def setUpClass(cls):
58
58
cls .hypervisor = testClient .getHypervisorInfo ()
59
59
60
60
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" )
63
62
64
63
cls .template = get_template (
65
64
cls .apiclient ,
@@ -117,8 +116,8 @@ def setUpClass(cls):
117
116
)
118
117
cls ._cleanup .append (cls .disk_offering )
119
118
else :
120
- cls . debug ("No zone wide storage found" )
121
- return
119
+ raise unittest . SkipTest ("No zone wide storage found. Skipping tests " )
120
+
122
121
123
122
cls .virtual_machine = VirtualMachine .create (
124
123
cls .apiclient ,
You can’t perform that action at this time.
0 commit comments