diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-05-22 20:41:43 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-05-22 20:41:43 +0000 |
| commit | 2be3de2df47b1c0fd97fdf2b46eccbc17271af9c (patch) | |
| tree | 155d7c31cde559e20b196aea1f9f0912335991aa /openstackclient/tests/functional/volume | |
| parent | 411cda722b082bc9274dd23f7e6b0c47e2cc9765 (diff) | |
| parent | 7a7bb06377c96f7bfc2c371aa2ff726ee364a9db (diff) | |
| download | python-openstackclient-2be3de2df47b1c0fd97fdf2b46eccbc17271af9c.tar.gz | |
Merge "Make block-device-mapping more stable and clear"
Diffstat (limited to 'openstackclient/tests/functional/volume')
| -rw-r--r-- | openstackclient/tests/functional/volume/v2/test_volume.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/volume/v2/test_volume.py b/openstackclient/tests/functional/volume/v2/test_volume.py index ce98236f..94ac792f 100644 --- a/openstackclient/tests/functional/volume/v2/test_volume.py +++ b/openstackclient/tests/functional/volume/v2/test_volume.py @@ -14,6 +14,8 @@ import json import time import uuid +from tempest.lib import exceptions + from openstackclient.tests.functional.volume.v2 import common @@ -253,7 +255,13 @@ class VolumeTests(common.BaseVolumeTests): total_sleep = 0 opts = self.get_opts(['status']) while total_sleep < wait: - status = self.openstack(check_type + ' show ' + check_name + opts) + try: + status = self.openstack( + check_type + ' show ' + check_name + opts + ) + except exceptions.CommandFailed: + # Show command raise Exception when object had been deleted + status = 'disappear' status = status.rstrip() print('Checking {} {} Waiting for {} current status: {}' .format(check_type, check_name, desired_status, status)) |
