diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-04-01 16:31:38 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-04-04 11:39:23 +0200 |
commit | d45c3f997201a6f17b39b3e5ceb82b332852149f (patch) | |
tree | 845236245b530243b178271d039160860704e1a9 /resources/tools/presentation/specification_parser.py | |
parent | ab635019fd3d5420a31fbd68c1549d0be2323104 (diff) |
Trending: Alerts
Change-Id: I1c744f4eeefe3082be02daa681bfc032d6db4d15
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/specification_parser.py')
-rw-r--r-- | resources/tools/presentation/specification_parser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py index ae566c67fa..53649609dd 100644 --- a/resources/tools/presentation/specification_parser.py +++ b/resources/tools/presentation/specification_parser.py @@ -434,6 +434,13 @@ class Specification(object): builds = [x for x in range(builds["start"], build_end+1) if x not in builds.get("skip", list())] self.configuration["data-sets"][set_name][job] = builds + elif isinstance(builds, list): + for idx, item in enumerate(builds): + try: + builds[idx] = int(item) + except ValueError: + # defined as a range <build_type> + builds[idx] = self._get_build_number(job, item) # Data sets: add sub-sets to sets (only one level): for set_name, data_set in self.configuration["data-sets"].items(): |