From a9eb373e9f4f4961df4b9382f33813abbd706328 Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Thu, 3 Aug 2017 11:16:07 -0700 Subject: [PATCH] Return error code when something goes wrong Change-Id: Idb9bc292833886014b096fee0e8f281a7eb31976 --- vmtp/vmtp.py | 2 ++ 1 file changed, 2 insertions(+) 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):