From: Cédric Ollivier Date: Sun, 18 Mar 2018 09:32:38 +0000 (+0100) Subject: Allow exceptions when deleting a missing verifier X-Git-Tag: opnfv-6.0.0~68 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=be5a74549a5c82e0588296b6638481e9555f686c;p=functest.git Allow exceptions when deleting a missing verifier Change-Id: I2e48bdcf9bce872a4a7855f9f6cd05d2b4897244 Signed-off-by: Cédric Ollivier --- diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index e0a36e5a4..be6480e42 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -88,8 +88,11 @@ def create_verifier(): cmd = ['rally', 'verify', 'delete-verifier', '--id', str(getattr(config.CONF, 'tempest_verifier_name')), '--force'] - output = subprocess.check_output(cmd) - LOGGER.info("%s\n%s", " ".join(cmd), output) + try: + output = subprocess.check_output(cmd) + LOGGER.info("%s\n%s", " ".join(cmd), output) + except subprocess.CalledProcessError: + pass cmd = ['rally', 'verify', 'create-verifier', '--source', str(getattr(config.CONF, 'dir_repo_tempest')),