Fixing issue when result msg is not properly added

Change-Id: I32c24fb2e821c028d8cf45f49c5c367073fb3dcb
This commit is contained in:
Anand Shanmugam 2016-04-28 13:59:56 -07:00
parent 57e051e542
commit 923c6682c5
3 changed files with 6 additions and 0 deletions

View File

@ -53,4 +53,6 @@ class all_scenario(base.Scenario):
if funres[0] != 200:
resultmsg += ("%s\n\n" % (funres[1]))
result = 404
if not resultmsg:
resultmsg = "All Tests passed"
return (result, resultmsg)

View File

@ -121,4 +121,6 @@ class endpoint_scenario(base.Scenario):
if funres[0] != 200:
resultmsg += ("%s failed: %s\n\n" % (func, funres[1]))
result = 404
if not resultmsg:
resultmsg = "All Tests passed"
return (result, resultmsg)

View File

@ -229,4 +229,6 @@ class operator_scenario(base.Scenario):
if funres[0] != 200:
resultmsg += ("%s failed: %s\n" % (func, funres[1]))
result = 404
if not resultmsg:
resultmsg = "All Tests passed"
return (result, resultmsg)