diff --git a/vmtp/vmtp.py b/vmtp/vmtp.py index 3d9c2e6..54c49b2 100755 --- a/vmtp/vmtp.py +++ b/vmtp/vmtp.py @@ -474,6 +474,8 @@ class VmtpTest(object): LOG.error('Stopping execution on error, cleanup all VMs/networks manually') sys.exit(2) else: + global return_code + return_code = 1 self.teardown() def test_native_tp(nhosts, ifname, config):