aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-03-26 08:26:07 +0100
committerTibor Frank <tifrank@cisco.com>2020-03-26 07:41:09 +0000
commitb54dc717ae7ba23913a5cc6be4c4631fb620e6bc (patch)
treed6ff08255e0ee4b5c17d3c3892d42ec2ef22a3e1 /resources/tools
parent99b1ecf2a2114c1a3be518d0f788b7765c11d525 (diff)
PAL: Local mode uses xml file name as a build number
Change-Id: Id4a26ac588883d917595ea45fcaabd16d89ded1f Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 4504d3cec6b801122d4f194284696601fbc3b492)
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/input_data_parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index 987b9964bc..cd9c1a248d 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -1594,6 +1594,11 @@ class InputData:
if not isfile(local_file):
raise PresentationError(f"The file {local_file} does not exist.")
+ try:
+ build_nr = int(local_file.split(u"/")[-1].split(u".")[0])
+ except (IndexError, ValueError):
+ pass
+
build = {
u"build": build_nr,
u"status": u"failed",