diff options
author | Tibor Frank <tifrank@cisco.com> | 2023-02-06 13:47:11 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2023-02-06 12:49:04 +0000 |
commit | 661a23e9c2f88bcea199f806cc8ceb71d86c1df4 (patch) | |
tree | 58f5e0e88ca3a680c08206dd5b094dad20cbc2d3 /resources | |
parent | 516ef40399e96b2defe5854af246869b5d63f308 (diff) |
Report: Set the range on y-axis for hoststack
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Change-Id: Ie5162073983646febea5c9a963a0a44a3c1c1dca
(cherry picked from commit 6aecd61f0808c995d0003272f2ef2da7ea0fca26)
Diffstat (limited to 'resources')
-rw-r--r-- | resources/tools/presentation/generator_plots.py | 6 | ||||
-rw-r--r-- | resources/tools/presentation/input_data_parser.py | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 70faffc8f4..cc9d880398 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -734,7 +734,6 @@ def plot_perf_box_name(plot, input_data): test_type = u"HOSTSTACK" elif test[u"type"] in (u"LDP_NGINX",): - logging.info(test) if u"TCP_CPS" in test[u"tags"]: test_type = u"VSAP_CPS" y_vals[test[u"parent"]].append( @@ -796,7 +795,10 @@ def plot_perf_box_name(plot, input_data): try: val_max = max(df_y[col]) if val_max: - y_max.append(int(val_max / 1e6)) + if test_type in (u"VSAP_CPS", u"VSAP_RPS"): + y_max.append(int(val_max)) + else: + y_max.append(int(val_max / 1e6)) except (ValueError, TypeError) as err: logging.error(repr(err)) continue diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index 7de6e54885..9e61c09d53 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -833,8 +833,7 @@ class ExecutionChecker(ResultVisitor): return result, status status = "PASS" except (IndexError, ValueError) as err: - logging.info(err) - logging.info(result) + logging.warning(err) return result, status def visit_suite(self, suite): |