aboutsummaryrefslogtreecommitdiffstats
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 08:28:32 +0100
commit4504d3cec6b801122d4f194284696601fbc3b492 (patch)
tree40666c4d521c522e87276004c6345e24d4f31c6d
parent45f5b2dae50aef87efaf3539676611e7724cb487 (diff)
PAL: Local mode uses xml file name as a build number
Change-Id: Id4a26ac588883d917595ea45fcaabd16d89ded1f Signed-off-by: Tibor Frank <tifrank@cisco.com>
-rw-r--r--docs/report/test_operational_data/vpp_performance_operational_data/index.rst2
-rw-r--r--resources/tools/presentation/input_data_parser.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/report/test_operational_data/vpp_performance_operational_data/index.rst b/docs/report/test_operational_data/vpp_performance_operational_data/index.rst
index c0edc487f1..2bf2845f76 100644
--- a/docs/report/test_operational_data/vpp_performance_operational_data/index.rst
+++ b/docs/report/test_operational_data/vpp_performance_operational_data/index.rst
@@ -3,7 +3,7 @@ VPP Throughput
VPP operational data is generated by |csit-release| NDR-PDR throughput tests
executed across physical testbeds hosted in LF FD.io labs: 3n-hsw, 3n-skx,
-2n- skx, 2n-clx, 3n-dnv, 2n-dnv, 3n-tsh. The data is collected at 100% PDR.
+2n-skx, 2n-clx, 3n-dnv, 2n-dnv, 3n-tsh. The data is collected at 100% PDR.
.. note::
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",