Fix Bottlenecks status page cann't be shown. 59/43559/2
authorliyin <liyin11@huawei.com>
Fri, 29 Sep 2017 06:41:46 +0000 (14:41 +0800)
committerAce Lee <liyin11@huawei.com>
Fri, 29 Sep 2017 06:44:52 +0000 (06:44 +0000)
Change-Id: Ia1ad4c0654ad2dea7fdb61b81725af9aaafc4750
Signed-off-by: liyin <liyin11@huawei.com>
utils/test/reporting/reporting/bottlenecks/reporting-status.py

index 8966d06..225227a 100644 (file)
@@ -37,10 +37,14 @@ for version in VERSIONS:
     # For all the installers
     for installer in INSTALLERS:
         # get scenarios results data
+        if version != 'master':
+            new_version = "stable/{}".format(version)
+        else:
+            new_version = version
         scenario_results = rp_utils.getScenarios("bottlenecks",
                                                  "posca_factor_ping",
                                                  installer,
-                                                 version)
+                                                 new_version)
         LOGGER.info("scenario_results: %s", scenario_results)
 
         scenario_stats = rp_utils.getScenarioStats(scenario_results)