aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-06-07 01:55:41 +0000
committerJose Lausuch <jose.lausuch@ericsson.com>2017-06-07 12:19:11 +0000
commitdc7f851b0c5412709b52396b0855c0572c904525 (patch)
treeea654afd054608a8b47c135d65f9fc879f19e9f2
parent6c6b03b310cf60b251a52127901431f7d059e45f (diff)
Bugfix: fix the return value
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>
-rwxr-xr-xfunctest/utils/openstack_clean.py1
-rwxr-xr-xfunctest/utils/openstack_snapshot.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/functest/utils/openstack_clean.py b/functest/utils/openstack_clean.py
index cdd918521..0ce087987 100755
--- a/functest/utils/openstack_clean.py
+++ b/functest/utils/openstack_clean.py
@@ -425,6 +425,7 @@ def main():
separator()
remove_tenants(keystone_client, default_tenants)
separator()
+ return 0
if __name__ == '__main__':
diff --git a/functest/utils/openstack_snapshot.py b/functest/utils/openstack_snapshot.py
index 8f1d3b9b2..233c316a8 100755
--- a/functest/utils/openstack_snapshot.py
+++ b/functest/utils/openstack_snapshot.py
@@ -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__':