]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix error reporting in @stack_delete_after unit tests
authorZane Bitter <zbitter@redhat.com>
Fri, 3 May 2013 13:57:57 +0000 (15:57 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 3 May 2013 15:34:38 +0000 (17:34 +0200)
commit0326c16c11ddea21ba3c8fc4cb73eca93566c706
tree0d9757252af235d66c5883a916a5c2e07e8af923
parentc9fa7375d426068e639710d662f44e246e0b1241
Fix error reporting in @stack_delete_after unit tests

If a unit test decorated with @stack_delete_after (to ensure that a stack
being tested is cleaned up) fails in such a way that the stack cannot be
cleaned up, the original error was suppressed, making debugging very
difficult. In this case, we should re-raise the original exception.

Change-Id: I2b0c326f819cd8a6bc772fe52deb14fb1c41bf93
heat/tests/utils.py