summaryrefslogtreecommitdiffstats
path: root/testcases/features
diff options
context:
space:
mode:
authorCarlos Goncalves <carlos.goncalves@neclab.eu>2016-07-29 14:54:55 +0200
committerCarlos Goncalves <carlos.goncalves@neclab.eu>2016-07-29 15:02:58 +0200
commit6ba03f75cd81a5a68fa10fc82f41137d248821cc (patch)
tree92bc4277a3ef3298a21f243a6b57664acf0ba6eb /testcases/features
parent7053fa447735e3f86772c4561aaacba74713680c (diff)
Return with exit code in Promise testcase
JIRA: PROMISE-77 Change-Id: Ie856d7b58f72a253abf4b446e33f3c98d06c50c1 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
Diffstat (limited to 'testcases/features')
-rwxr-xr-xtestcases/features/promise.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testcases/features/promise.py b/testcases/features/promise.py
index 74c1ad782..170f75494 100755
--- a/testcases/features/promise.py
+++ b/testcases/features/promise.py
@@ -70,6 +70,7 @@ logger = ft_logger.Logger("promise").getLogger()
def main():
+ exit_code = -1
start_time = time.time()
ks_creds = openstack_utils.get_credentials("keystone")
nv_creds = openstack_utils.get_credentials("nova")
@@ -241,6 +242,7 @@ def main():
status = "FAIL"
if int(tests) > 32 and int(failures) < 1:
status = "PASS"
+ exit_code = 0
functest_utils.push_results_to_db("promise",
"promise",
@@ -250,6 +252,8 @@ def main():
status,
json_results)
+ exit(exit_code)
+
if __name__ == '__main__':
main()