Return error code when something goes wrong

Change-Id: Idb9bc292833886014b096fee0e8f281a7eb31976
This commit is contained in:
Yichen Wang 2017-08-03 11:16:07 -07:00
parent 0afab91417
commit a9eb373e9f

View File

@ -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):