File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
test/integration/component Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,10 @@ def setUpClass(cls):
6464 cls .zone = Zone (zone .__dict__ )
6565 cls ._cleanup = []
6666
67+ cls .skip = False
6768 if str (cls .zone .securitygroupsenabled ) != "True" :
68- sys .exit (1 )
69+ cls .skip = True
70+ return
6971
7072 cls .logger = logging .getLogger ("TestMulipleNicSupport" )
7173 cls .stream_handler = logging .StreamHandler ()
@@ -78,7 +80,8 @@ def setUpClass(cls):
7880
7981 cls .template = get_template (cls .apiclient , cls .zone .id , hypervisor = "KVM" )
8082 if cls .template == FAILED :
81- sys .exit (1 )
83+ cls .skip = True
84+ return
8285
8386 # Create new domain, account, network and VM
8487 cls .user_domain = Domain .create (
@@ -262,6 +265,8 @@ def tearDownClass(self):
262265 return
263266
264267 def setUp (self ):
268+ if self .skip :
269+ self .skipTest ("Test can be run only on advanced zone and KVM hypervisor" )
265270 self .apiclient = self .testClient .getApiClient ()
266271 self .cleanup = []
267272 return
You can’t perform that action at this time.
0 commit comments