From 8315be61ad033307ea5a11d2638ed699e42ee8b1 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Fri, 29 May 2015 12:35:28 +0530 Subject: [PATCH] CLOUDSTACK-8515: Skipping snapshot test cases for HyperV and LXC Signed-off-by: Gaurav Aradhye This closes #324 --- .../testpaths/testpath_volume_cuncurrent_snapshots.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/integration/testpaths/testpath_volume_cuncurrent_snapshots.py b/test/integration/testpaths/testpath_volume_cuncurrent_snapshots.py index fa86281383d..ffc6fd0615a 100644 --- a/test/integration/testpaths/testpath_volume_cuncurrent_snapshots.py +++ b/test/integration/testpaths/testpath_volume_cuncurrent_snapshots.py @@ -148,6 +148,12 @@ class TestConcurrentSnapshots(cloudstackTestCase): cls.testdata["ostype"]) cls._cleanup = [] + cls.vm_pool = [] + cls.snapshotSupported = True + + if cls.hypervisor.lower() in ["hyperv", "lxc"]: + cls.snapshotSupported = False + return # Set sleep time as per Snapshot Recurring Policy - HOURLY cls.sleep_time_for_hourly_policy = 60 * 60 * 1 @@ -177,7 +183,6 @@ class TestConcurrentSnapshots(cloudstackTestCase): ) cls._cleanup.append(cls.service_offering) - cls.vm_pool = [] for i in range(4): cls.vm = VirtualMachine.create( cls.apiclient, @@ -236,6 +241,9 @@ class TestConcurrentSnapshots(cloudstackTestCase): self.dbclient = self.testClient.getDbConnection() self.cleanup = [] + if not self.snapshotSupported: + self.skipTest("Snapshot is not supported on %s" % self.hypervisor) + def tearDown(self): try: cleanup_resources(self.apiclient, self.cleanup)