From 0a4b6cfb32e8d54b574addf30d03db7018faccb8 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Mon, 23 Apr 2018 13:40:04 +0200 Subject: [PATCH 1/1] Always try to clean up all virtual machines and networks Signed-off-by: Jonatan Schlag --- test.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 2e2f13a..271e809 100755 --- a/test.py +++ b/test.py @@ -633,6 +633,11 @@ if __name__ == "__main__": currenttest.read_settings() currenttest.virtual_environ_setup() currenttest.load_recipe() - currenttest.virtual_environ_start() - currenttest.run_recipe() - currenttest.virtual_environ_stop() \ No newline at end of file + try: + currenttest.virtual_environ_start() + currenttest.run_recipe() + except BaseException as e: + print(e) + finally: + currenttest.virtual_environ_stop() + -- 2.39.2