Bugfix: fix the return value 43/35843/2
authorLinda Wang <wangwulin@huawei.com>
Wed, 7 Jun 2017 01:55:41 +0000 (01:55 +0000)
committerJose Lausuch <jose.lausuch@ericsson.com>
Wed, 7 Jun 2017 12:19:11 +0000 (12:19 +0000)
openstack_snapshot and openstack_clean should return 0 when they are run
successfully.

JIRA: FUNCTEST-835

Change-Id: I3fcc24ab985de382e0e59b129cb467d66a9a0de2
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/utils/openstack_clean.py
functest/utils/openstack_snapshot.py

index cdd9185..0ce0879 100755 (executable)
@@ -425,6 +425,7 @@ def main():
     separator()
     remove_tenants(keystone_client, default_tenants)
     separator()
+    return 0
 
 
 if __name__ == '__main__':
index 8f1d3b9..233c316 100755 (executable)
@@ -160,6 +160,7 @@ def main():
                      % yaml_file.read())
         logger.debug("NOTE: These objects will NOT be deleted after " +
                      "running the test.")
+    return 0
 
 
 if __name__ == '__main__':