From f7b4e61fcc20c5814d9b7ed5ebefbec1b549cd03 Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Fri, 7 Oct 2016 13:12:39 +0800 Subject: Refactor pushing suite result to test db modification: remove compute_suite.py,network_suite.py,storage_suite.py handler all suite result in suite_result.py refactor pushtoDB.py so that it can be called by qtip_server JIRA:QTIP-99 Change-Id: I1630a512c22cba7be038f5301f1454b8ef4f762f Signed-off-by: zhifeng.jiang --- data/ref_results/storage_suite.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 data/ref_results/storage_suite.py (limited to 'data/ref_results/storage_suite.py') diff --git a/data/ref_results/storage_suite.py b/data/ref_results/storage_suite.py deleted file mode 100644 index 38d97622..00000000 --- a/data/ref_results/storage_suite.py +++ /dev/null @@ -1,27 +0,0 @@ -import json -import storage_benchmarks_indices as benchmark_indices - - -storage_dict = {} -try: - storage_dict['FIO'] = benchmark_indices.fio_index() -except OSError: - pass - -storage_bench_list = ['FIO'] -l = len(storage_bench_list) -temp = 0 -for benchmark in storage_bench_list: - try: - temp = temp + float(storage_dict[benchmark]['index']) - except KeyError: - 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 - with open('../../results/storage_result.json', 'w+') as result_json: - json.dump(storage_dict_f, result_json, indent=4, sort_keys=True) -- cgit 1.2.3-korg