SKIP vm migration tests on LXC since it is not a supported hypervisor

This closes #383
This commit is contained in:
Sanjeev Neelarapu 2015-06-10 17:12:18 +05:30 committed by sanjeev
parent 54a664730d
commit de6538c9e7

View File

@ -1386,15 +1386,14 @@ class TestHardening(cloudstackTestCase):
clusterid_tag_mapping = {}
cwps_no = 0
cls.unsupportedHypervisor = False
if cls.hypervisor.lower() not in [
"vmware",
"kvm",
"xenserver",
"hyper-v"]:
raise unittest.SkipTest(
"Storage migration not supported on %s" %
cls.hypervisor)
cls.unsupportedHypervisor = True
return
try:
cls.pools = StoragePool.list(
@ -1510,6 +1509,8 @@ class TestHardening(cloudstackTestCase):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.cleanup = []
if self.unsupportedHypervisor:
self.skipTest("VM migration is not supported on %s" % self.hypervisor)
def tearDown(self):
try: