Some tests have had a finally clause added which means they delete the
stack before doing any tests, even when it is created successfully. Doh!
Change-Id: I7cefd313b9f810067304fe19f58a038226555b86
Signed-off-by: Steven Hardy <shardy@redhat.com>
# Match the expected format for an instance's physical resource ID
cls.phys_res_id_re = re.compile(
"^[0-9a-z]*-[0-9a-z]*-[0-9a-z]*-[0-9a-z]*-[0-9a-z]*$")
- finally:
+ except Exception as ex:
+ print "setupAll failed : %s" % ex
cls.stack.cleanup()
+ raise
@classmethod
def teardownAll(cls):
# Match the expected format for an instance's physical resource ID
cls.phys_res_id_re = re.compile(
"^[0-9a-z]*-[0-9a-z]*-[0-9a-z]*-[0-9a-z]*-[0-9a-z]*$")
- finally:
+ except Exception as ex:
+ print "setupAll failed : %s" % ex
cls.stack.cleanup()
+ raise
@classmethod
def teardownAll(cls):
cls.WikiDatabase.wait_for_provisioning()
cls.logical_resource_status = "CREATE_COMPLETE"
cls.stack_status = "CREATE_COMPLETE"
- finally:
+ except Exception as ex:
+ print "setupAll failed : %s" % ex
cls.stack.cleanup()
+ raise
@classmethod
def teardownAll(cls):