aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ONOS/Sfc
diff options
context:
space:
mode:
authorwuwenbin2 <wuwenbin2@huawei.com>2016-07-29 17:18:53 +0800
committerwuwenbin2 <wuwenbin2@huawei.com>2016-07-30 09:56:44 +0800
commit86ff7d4f2fbe563f4b6ca781909c7c9d8681f39a (patch)
tree460104eab921a797c744b55c1e74dd7a10b792fa /testcases/Controllers/ONOS/Sfc
parent34e80199fbb9829c2425ecf37b3998df692212eb (diff)
Add onos_sfc scenario
JIRA:ONOSFW-172 Change-Id: I019edf79f8d343f794aa7af151d8e30c18e2c5f6 Signed-off-by: wuwenbin2 <wuwenbin2@huawei.com>
Diffstat (limited to 'testcases/Controllers/ONOS/Sfc')
-rw-r--r--testcases/Controllers/ONOS/Sfc/Sfc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testcases/Controllers/ONOS/Sfc/Sfc.py b/testcases/Controllers/ONOS/Sfc/Sfc.py
index 6b1973ef..a5201987 100644
--- a/testcases/Controllers/ONOS/Sfc/Sfc.py
+++ b/testcases/Controllers/ONOS/Sfc/Sfc.py
@@ -226,4 +226,9 @@ class Sfc:
'status': status})
except:
logger.error("Error pushing results into Database")
+
+ if status == "FAIL":
+ EXIT_CODE = -1
+ exit(EXIT_CODE)
+
print("############################END OF SCRIPT ######################")