diff options
author | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-07-16 21:15:11 +0800 |
---|---|---|
committer | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-07-16 21:15:11 +0800 |
commit | 481f78bf7a08e31ee53270028fa70b9eb60ff0a3 (patch) | |
tree | 629ac721a5fa3b18180e3fd7152acfa8795b50d4 /data/ref_results/storage_suite.py | |
parent | acd405c3199a03ae58844a6c6f0e5595fb877da3 (diff) |
Fix pep8 errors for all the others python files.
JIRA:QTIP-89
Change-Id: Ida1936dea3bcab6137d039fc2d21dc4df60d9f77
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'data/ref_results/storage_suite.py')
-rw-r--r-- | data/ref_results/storage_suite.py | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/data/ref_results/storage_suite.py b/data/ref_results/storage_suite.py index 5c1a89a2..52d6c8c6 100644 --- a/data/ref_results/storage_suite.py +++ b/data/ref_results/storage_suite.py @@ -2,30 +2,26 @@ import json import storage_benchmarks_indices as benchmark_indices -storage_dict={}; +storage_dict = {} try: - storage_dict['FIO']=benchmark_indices.fio_index() + storage_dict['FIO'] = benchmark_indices.fio_index() except OSError: pass - -storage_bench_list=['FIO'] -l=len(storage_bench_list) -temp=0 +storage_bench_list = ['FIO'] +l = len(storage_bench_list) +temp = 0 for benchmark in storage_bench_list: try: - temp=temp+float(storage_dict[benchmark]['1. Index']) + temp = temp + float(storage_dict[benchmark]['1. Index']) except KeyError: - l-=1 - - + l -= 1 if l == 0: print "No Storage results found" else: - storage_suite_index=temp/l - storage_dict_f={}; - storage_dict_f['index']=storage_suite_index - storage_dict_f['storage suite']=storage_dict + storage_suite_index = temp / l + storage_dict_f = {} + storage_dict_f['index'] = storage_suite_index + storage_dict_f['storage suite'] = storage_dict with open('../../results/storage_result.json', 'w+') as result_json: json.dump(storage_dict_f, result_json, indent=4, sort_keys=True) - |