diff options
author | 2016-12-12 07:13:30 +0000 | |
---|---|---|
committer | 2016-12-12 07:13:30 +0000 | |
commit | e19dacdb57d0b3520b85d60607813f3c6548ff67 (patch) | |
tree | 68a1896a24c68350180f9c1bb28c7b95cdb08a37 /yardstick/benchmark/scenarios/storage/storagecapacity.py | |
parent | 4a9465801b48c1042656d860b54621f30c6c1423 (diff) | |
parent | 0576844bb2cdae6b479504ec1532a5dc56c0b633 (diff) |
Merge "use context manager for stdin files and use _put_file_shell"
Diffstat (limited to 'yardstick/benchmark/scenarios/storage/storagecapacity.py')
-rw-r--r-- | yardstick/benchmark/scenarios/storage/storagecapacity.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yardstick/benchmark/scenarios/storage/storagecapacity.py b/yardstick/benchmark/scenarios/storage/storagecapacity.py index bed45fa6d..bf5bc2810 100644 --- a/yardstick/benchmark/scenarios/storage/storagecapacity.py +++ b/yardstick/benchmark/scenarios/storage/storagecapacity.py @@ -64,8 +64,7 @@ class StorageCapacity(base.Scenario): self.client.wait(timeout=600) # copy script to host - self.client.run("cat > ~/storagecapacity.sh", - stdin=open(self.target_script, 'rb')) + self.client._put_file_shell(self.target_script, '~/storagecapacity.sh') self.setup_done = True @@ -109,7 +108,7 @@ class StorageCapacity(base.Scenario): for i in range(len(device_name_arr)): r[device_name_arr[i]] = {"min_util": min_util_arr[i], "max_util": max_util_arr[i], - "avg_util": avg_util_arr[i]/count} + "avg_util": avg_util_arr[i] / count} return r def run(self, result): |