Skipping test instead of raising exception in case enough zones are not present for it to run on

This commit is contained in:
Gaurav Aradhye 2014-07-25 17:20:50 +05:30 committed by Girish Shilamkar
parent 9245b7b71f
commit 97b9e86561

View File

@ -624,7 +624,7 @@ class TestIsos(cloudstackTestCase):
"Failed to list Zones"
)
if not len(zones_list) > 1:
self.fail("Enough zones doesnot exists to copy iso")
self.skipTest("Enough zones doesnot exists to copy iso")
else:
# Listing all the ISO's for a User in Zone 1
list_isos_zone1 = Iso.list(
@ -780,4 +780,4 @@ class TestIsos(cloudstackTestCase):
"Failed to copy ISO"
)
del self.services["iso"]["zoneid"]
return
return