aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/specification_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-08-11 15:58:27 +0200
committerTibor Frank <tifrank@cisco.com>2021-08-18 04:55:07 +0000
commit64c9c4bd81adf3057134c91835a2c6a46eb1443c (patch)
tree9fd02099216ec5640cf623dd2e30dbfb2740623f /resources/tools/presentation/specification_parser.py
parenta47e22094114ac64803d28c12ce54f3ea8a76b9f (diff)
Report: Add tables with builds durations
Change-Id: I6e5d72b336ab68c9ffd74f9ab20d7cb0ed4b5fb3 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 6353e5b063a146fe4bd66437ef09f540b9f87514)
Diffstat (limited to 'resources/tools/presentation/specification_parser.py')
-rw-r--r--resources/tools/presentation/specification_parser.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py
index a94d09f3fa..00614cf62f 100644
--- a/resources/tools/presentation/specification_parser.py
+++ b/resources/tools/presentation/specification_parser.py
@@ -666,9 +666,16 @@ class Specification:
table[u"columns"][i][u"data-replacement"] = \
self.data_sets[data_set]
+ if table.get(u"lines", None):
+ for i in range(len(table[u"lines"])):
+ data_set = table[u"lines"][i].get(u"data-set", None)
+ if isinstance(data_set, str):
+ table[u"lines"][i][u"data-set"] = \
+ self.data_sets[data_set]
+
except KeyError:
raise PresentationError(
- f"Wrong data set used in {table.get(u'title', u'')}."
+ f"Wrong set '{data_set}' used in {table.get(u'title', u'')}."
)
self._specification[u"tables"].append(table)