Fail test step on failed bandwidth check
Change-Id: I618483669d785a0c7d255f22f092e465bc0b71c5
diff --git a/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py b/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py
index 27bb5e3..3051658 100755
--- a/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py
+++ b/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py
@@ -121,6 +121,7 @@
main.assertReturnString += 'Bandwidth Allocation check Passed\n'
else:
main.assertReturnString += 'Bandwidth Allocation check Failed\n'
+ return main.FALSE
if flowDuration( main ):
@@ -522,6 +523,7 @@
main.assertReturnString += 'Bandwidth Allocation check Passed\n'
else:
main.assertReturnString += 'Bandwidth Allocation check Failed\n'
+ return main.FALSE
# Check VLAN if test encapsulation
if encap != "":
@@ -973,6 +975,8 @@
main.assertReturnString += 'Bandwidth Allocation check Passed\n'
else:
main.assertReturnString += 'Bandwidth Allocation check Failed\n'
+ return main.FALSE
+
if flowDuration( main ):
main.assertReturnString += 'Flow duration check Passed\n'
return intentId
@@ -1120,6 +1124,8 @@
main.assertReturnString += 'Bandwidth Allocation check Passed\n'
else:
main.assertReturnString += 'Bandwidth Allocation check Failed\n'
+ return main.FALSE
+
if flowDuration( main ):
main.assertReturnString += 'Flow duration check Passed\n'
return intentId