commit | a2a82181bfe2f5d2b12729c8e5d13de1bed8c525 | [log] [tgz] |
---|---|---|
author | Matthew Treinish <treinish@linux.vnet.ibm.com> | Wed Jun 19 17:03:04 2013 -0400 |
committer | Matthew Treinish <treinish@linux.vnet.ibm.com> | Thu Jun 20 09:58:31 2013 -0400 |
tree | cc77856fe5c9748a2414a156ed72c82b93788ce5 | |
parent | b71c3e81a0e5857681ab41ca988b689f998e3907 [diff] |
Fix test_volumes_get volumes cleanup. Currently for test_volumes_get if the volume creation fails and we won't define the volume variable which will result in an undefined error in the finally block that always gets run. This will mask the actual cause of the test failure. This commit fixes this by reworking the cleanup logic in the tests to use the addCleanup so if the api call fails the actual error will be printed. Change-Id: I2619575fe80d4f3ce38cc951e7dbd44311d61432