CLOUDSTACK-7271: Accept any hypervisor in error message

Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
John Dilley 2014-08-06 14:55:30 +00:00 committed by Santhosh Edukulla
parent 1e3a689793
commit 5f816e3e3f

View File

@ -35,6 +35,8 @@ from marvin.codes import FAILED
from nose.plugins.attrib import attr
import re
class TestData(object):
"""Test data object that is required to create resources
"""
@ -195,7 +197,7 @@ class TestDeployVM(cloudstackTestCase):
rootdisksize=newrootsize
)
except Exception as ex:
if "Hypervisor XenServer does not support rootdisksize override" in str(ex):
if re.search("Hypervisor \S+ does not support rootdisksize override", str(ex)):
success = True
else:
self.debug("virtual machine create did not fail appropriately. Error was actually : " + str(ex));