diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2018-01-22 21:50:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-22 21:50:37 +0000 |
commit | 36f0563490a4ee8f5b30eb7fe51a62d3b55c5b32 (patch) | |
tree | db3513c86654c2dcd94ceb9c52e2f3dd633d92f8 /yardstick | |
parent | 847881b9231b4a7713347e8532afdb9cae764518 (diff) | |
parent | bedcb3c33d14bd4259c37bcbca8a49d757c8cef4 (diff) |
Merge "Clean unit tests in "benchmark.scenarios.lib.test_create_volume.py"
Diffstat (limited to 'yardstick')
-rw-r--r-- | yardstick/benchmark/scenarios/lib/create_volume.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/yardstick/benchmark/scenarios/lib/create_volume.py b/yardstick/benchmark/scenarios/lib/create_volume.py index c7086d0ef..df523a5ec 100644 --- a/yardstick/benchmark/scenarios/lib/create_volume.py +++ b/yardstick/benchmark/scenarios/lib/create_volume.py @@ -44,22 +44,21 @@ class CreateVolume(base.Scenario): self.setup_done = True - def run(self, result): + def run(self): """execute the test""" if not self.setup_done: self.setup() - if self.image_name: - self.image_id = op_utils.get_image_id(self.glance_client, - self.image_name) + self.image_id = op_utils.get_image_id(self.glance_client, + self.image_name) volume = op_utils.create_volume(self.cinder_client, self.volume_name, self.volume_size, self.image_id) status = volume.status while(status == 'creating' or status == 'downloading'): - LOG.info("Volume status is: %s" % status) + LOG.info("Volume status is: %s", status) time.sleep(5) volume = op_utils.get_volume_by_name(self.volume_name) status = volume.status |