Return error code when something goes wrong
Change-Id: Idb9bc292833886014b096fee0e8f281a7eb31976
This commit is contained in:
parent
0afab91417
commit
a9eb373e9f
@ -474,6 +474,8 @@ class VmtpTest(object):
|
|||||||
LOG.error('Stopping execution on error, cleanup all VMs/networks manually')
|
LOG.error('Stopping execution on error, cleanup all VMs/networks manually')
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
else:
|
else:
|
||||||
|
global return_code
|
||||||
|
return_code = 1
|
||||||
self.teardown()
|
self.teardown()
|
||||||
|
|
||||||
def test_native_tp(nhosts, ifname, config):
|
def test_native_tp(nhosts, ifname, config):
|
||||||
|
Loading…
Reference in New Issue
Block a user