diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-04-10 09:31:21 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-04-10 07:34:51 +0000 |
commit | 0a16a7059b75e8f1a6c5a0e1ad3b46d97f5a1e77 (patch) | |
tree | 0ba296417e1af1f070268e6e2f4c9c3e362a76db | |
parent | 2001950538692b22a7ff975f5c4df2c0faa62389 (diff) |
PAL Trending: Add x710 tests
Change-Id: Id07cdaa5aa0266f88ed0907f7568cb6b4e64914c
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit ef1745142709e401e6358b23b74160ba704586f5)
-rw-r--r-- | resources/tools/presentation/generator_CPTA.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index 967eb6003d..c8874593bc 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -364,8 +364,14 @@ def _generate_all_charts(spec, input_data): 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 = [str(build) for build in range(builds[0], builds[-1] + 1)] + + builds_lst = list() + for build in range(builds[0], builds[-1] + 1): + if spec.input[job_name][str(build)]["status"] != "failed" and \ + spec.input[job_name][build]["status"] != "not found": + builds_lst.append(str(build)) + print(builds_lst) # Get "build ID": "date" dict: build_dates = dict() for build in builds_lst: |