aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-03-18 10:32:38 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-03-18 10:32:38 +0100
commitbe5a74549a5c82e0588296b6638481e9555f686c (patch)
treeff39cad5ea1433d3986847098ea6684a93297eba
parent2b6950c3d496b42ef62632c638a27d79d73e3364 (diff)
Allow exceptions when deleting a missing verifier
Change-Id: I2e48bdcf9bce872a4a7855f9f6cd05d2b4897244 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py7
1 files changed, 5 insertions, 2 deletions
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')),