summaryrefslogtreecommitdiffstats
path: root/data/ref_results/result_accum.py
diff options
context:
space:
mode:
authorNauman_Ahad <Nauman_Ahad@dell.com>2016-01-05 21:01:17 +0500
committerNauman_Ahad <Nauman_Ahad@dell.com>2016-01-05 21:01:17 +0500
commit57922dcb8e6497f02fdee9306494e932e25dcace (patch)
tree03243a0673de88e39cc682d4d64e54be2ad1c898 /data/ref_results/result_accum.py
parent8812f4746015c669dc8dcab23069f5244ff8acb6 (diff)
QTIP Index calculation along with a script to run qtip from docker
Calculation of Result Indices for 1. Compute suite 2. Storage suite 3. Network suite A script to run qtip from inside the docker container (for Jenkins Jobs) Resolved bugs with ssl_trasform.py, sys info collection on ubuntu and system information collection script Change-Id: Ic5abb3dbd0012cd2257b588b1b3067a6677b1f5d Signed-off-by: Nauman_Ahad <Nauman_Ahad@dell.com>
Diffstat (limited to 'data/ref_results/result_accum.py')
-rw-r--r--data/ref_results/result_accum.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/data/ref_results/result_accum.py b/data/ref_results/result_accum.py
new file mode 100644
index 00000000..4c600048
--- /dev/null
+++ b/data/ref_results/result_accum.py
@@ -0,0 +1,31 @@
+import os
+import json
+
+def result_concat(targ_dir):
+ list_vm=[];
+ list_bm=[];
+ diction={};
+ for file in os.listdir(targ_dir):
+ if file.endswith(".json"):
+ if file.startswith("instance"):
+ print str(file)
+ list_vm.append(file)
+ #echo "I am here"
+ else:
+ list_bm.append(file)
+ l=len(list_bm)
+ k=len(list_vm)
+
+ for x in range (0,l):
+ file_t=list_bm[x]
+ with open (targ_dir+file_t) as result_file:
+ result_djson=json.load(result_file)
+ diction['Baremetal'+str(int(x+1))]=result_djson
+
+ for x in range (0,k):
+ file_t=list_vm[x]
+ with open (targ_dir+file_t) as result_file:
+ result_djson=json.load(result_file)
+ diction['Virtual Machine '+str(x+1)]=result_djson
+ return diction
+