diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-09-26 16:07:24 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-09-26 16:07:24 +0000 |
commit | 12f1f62cda10e9464b0a7498048257b69696e01a (patch) | |
tree | 6641415670e2c0aad300fda884719b440c7de675 | |
parent | 84853b622dd566ca855c1ad25f0d97af025c2070 (diff) | |
download | ciat-tester-12f1f62cda10e9464b0a7498048257b69696e01a.tar.gz |
Clean up even when anything fails
-rwxr-xr-x | tester | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -414,9 +414,11 @@ class ReleaseApp(cliapp.Application): print('WARNING: No tests specified.') self.load_tests(args) - self.load_setup(self.settings['setup']) - self.start() - self.clean_up() + try: + self.load_setup(self.settings['setup']) + self.start() + finally: + self.clean_up() if __name__ == '__main__': ReleaseApp().run() |