diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-11-09 13:48:17 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-11-19 07:23:16 +0000 |
commit | 8c2e2aaef7289df6b394faccb4b5ae050e33f43a (patch) | |
tree | 449763fd43abdff27301be4c8009640d2a5a35e4 /resources/tools/presentation/generator_cpta.py | |
parent | 816bfdf912b9530e5038cdd5cbc51f23286c3fe9 (diff) |
Trending: Add NAT44 tests
Change-Id: I2601a786f58b1d89cc9a90cb16ff20e6331abbfe
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_cpta.py')
-rw-r--r-- | resources/tools/presentation/generator_cpta.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_cpta.py b/resources/tools/presentation/generator_cpta.py index 47e934ec33..2f2ab970e4 100644 --- a/resources/tools/presentation/generator_cpta.py +++ b/resources/tools/presentation/generator_cpta.py @@ -208,6 +208,8 @@ def _generate_trending_traces(in_data, job_name, build_info, ) else: hover_str = hover_str.replace(u"<stdev>", u"") + if u"-cps" in name: + hover_str = hover_str.replace(u"[Mpps]", u"[Mcps]") if u"dpdk" in job_name: hover_text.append(hover_str.format( date=date, @@ -220,7 +222,7 @@ def _generate_trending_traces(in_data, job_name, build_info, build_nr=str_key, testbed=build_info[job_name][str_key][2])) elif u"vpp" in job_name: - hover_text.append(hover_str.format( + hover_str = hover_str.format( date=date, property=u"average" if incl_tests == u"MRR" else u"throughput", value=data_y_mpps[index], @@ -229,7 +231,10 @@ def _generate_trending_traces(in_data, job_name, build_info, test=incl_tests.lower(), period=u"daily" if incl_tests == u"MRR" else u"weekly", build_nr=str_key, - testbed=build_info[job_name][str_key][2])) + testbed=build_info[job_name][str_key][2]) + if u"-cps" in name: + hover_str = hover_str.replace(u"throughput", u"connection rate") + hover_text.append(hover_str) xaxis.append(datetime(int(date[0:4]), int(date[4:6]), int(date[6:8]), int(date[9:11]), int(date[12:]))) |