aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-10 12:20:41 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-10 10:22:05 +0000
commit9356c41a2071d83d11723290cbecc8bdcf1a4b04 (patch)
tree2c595999f24824d43d202f8502d77d25eec58b9f /resources/tools/presentation
parentc5c36999b9e0ac27fd3200568cd76a69134cfd4e (diff)
Fix: PAL Trending csv and txt tables
- Fix the problem with missing builds in the range of builds Change-Id: I17fbc083ad88ee7c1b30c05f4f05022a1c92683d Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation')
-rw-r--r--resources/tools/presentation/generator_CPTA.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index 967eb6003d..69a8df6afd 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -362,9 +362,13 @@ def _generate_all_charts(spec, input_data):
:type input_data: InputData
"""
- builds = spec.cpta["data"].values()[0]
job_name = spec.cpta["data"].keys()[0]
- builds_lst = [str(build) for build in range(builds[0], builds[-1] + 1)]
+
+ builds_lst = list()
+ for build in spec.input["builds"][job_name]:
+ status = build["status"]
+ if status != "failed" and status != "not found":
+ builds_lst.append(str(build["build"]))
# Get "build ID": "date" dict:
build_dates = dict()