change version to scenario 81/15981/1
authorboucherv <valentin.boucher@orange.com>
Fri, 24 Jun 2016 16:37:30 +0000 (18:37 +0200)
committerboucherv <valentin.boucher@orange.com>
Fri, 24 Jun 2016 16:37:30 +0000 (18:37 +0200)
Change-Id: I0942e9c8f23e886d6a6e344fa1fd1c24c1cd3f4b
Signed-off-by: boucherv <valentin.boucher@orange.com>
utils/test/reporting/functest/reporting-vims.py

index 922c6f3..4033687 100644 (file)
@@ -34,12 +34,13 @@ for installer in installers:
         print 'No kittez. Got an error code:', e
 
     test_results = results['results']
+    test_results.reverse()
 
     scenario_results = {}
     for r in test_results:
-        if not r['version'] in scenario_results.keys():
-            scenario_results[r['version']] = []
-        scenario_results[r['version']].append(r)
+        if not r['scenario'] in scenario_results.keys():
+            scenario_results[r['scenario']] = []
+        scenario_results[r['scenario']].append(r)
 
     for s, s_result in scenario_results.items():
         scenario_results[s] = s_result[0:5]