diff --git a/test/integration/smoke/test_iso.py b/test/integration/smoke/test_iso.py old mode 100644 new mode 100755 index 79eb8141ac0..830f52adf89 --- a/test/integration/smoke/test_iso.py +++ b/test/integration/smoke/test_iso.py @@ -41,6 +41,9 @@ class TestCreateIso(cloudstackTestCase): self.services = self.testClient.getParsedTestDataConfig() self.apiclient = self.testClient.getApiClient() self.dbclient = self.testClient.getDbConnection() + self.hypervisor = self.testClient.getHypervisorInfo() + if self.hypervisor.lower() in ['lxc']: + self.skipTest("ISOs are not supported on %s" % self.hypervisor) # Get Zone, Domain and templates self.domain = get_domain(self.apiclient) self.zone = get_zone(self.apiclient, self.testClient.getZoneForTests()) @@ -150,7 +153,7 @@ class TestISO(cloudstackTestCase): cls._cleanup = [] cls.unsupportedHypervisor = False cls.hypervisor = get_hypervisor_type(cls.apiclient) - if cls.hypervisor.lower() == "simulator": + if cls.hypervisor.lower() in ["simulator", "lxc"]: cls.unsupportedHypervisor = True return @@ -230,7 +233,6 @@ class TestISO(cloudstackTestCase): self.apiclient = self.testClient.getApiClient() self.dbclient = self.testClient.getDbConnection() self.cleanup = [] - if self.unsupportedHypervisor: self.skipTest("Skipping test because unsupported hypervisor\ %s" % self.hypervisor)