From: Linda Wang Date: Wed, 7 Jun 2017 01:55:41 +0000 (+0000) Subject: Bugfix: fix the return value X-Git-Tag: 0.2~574 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=dc7f851b0c5412709b52396b0855c0572c904525;p=functest-xtesting.git 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 --- diff --git a/functest/utils/openstack_clean.py b/functest/utils/openstack_clean.py index cdd91852..0ce08798 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 8f1d3b9b..233c316a 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__':