From: Vratko Polak Date: Fri, 22 Apr 2022 11:29:06 +0000 (+0200) Subject: fix(uti): export correct units in cps ndrpdr X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=a8f2fe78ae955d01e5738e0fbb3496d4b0833f99 fix(uti): export correct units in cps ndrpdr Compute Bandwidth keyword returns value in Gbps, as that is convenient for test messages. Export Search Bound keyword expects value in bps, as that is convenient for JSON export. While the conversion was present in Display Single PPS Bound keyword, it was missing from Display Single CPS Bound keyword. Now added. Change-Id: I5bb5934beeecfa2ee1b77dd1b1bfc788d034c845 Signed-off-by: Vratko Polak --- diff --git a/resources/libraries/robot/performance/performance_display.robot b/resources/libraries/robot/performance/performance_display.robot index aaf5be8190..1313788d5e 100644 --- a/resources/libraries/robot/performance/performance_display.robot +++ b/resources/libraries/robot/performance/performance_display.robot @@ -224,7 +224,7 @@ | | | | Set Test Message | ${\n}${text}: ${tps} CPS | append=yes | | ${bandwidth} | ${pps} = | Compute Bandwidth | ${tps} -| | Export Search Bound | ${text} | ${tps} | cps | ${bandwidth} +| | Export Search Bound | ${text} | ${tps} | cps | ${bandwidth * 1e9} | | Return From Keyword If | not """${latency}""" | | Set Test Message | ${\n}LATENCY [min/avg/max/hdrh] per stream: ${latency} | | ... | append=yes