From e91ff58ea20f8ce0e1726e95c55dfb7331ac0e5c Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Thu, 9 Jan 2025 17:52:45 +0100 Subject: feat(hoststack): Run stat_post_trial if wait fails Stat outputs are useful when investigating why client is slow. This fixes only AB tests. Iperf3 would need more complicated code. Change-Id: I4e523519b0b6f39c310de96aace7eb03a40a3b74 Signed-off-by: Vratko Polak --- resources/libraries/robot/hoststack/hoststack.robot | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'resources/libraries/robot/hoststack') diff --git a/resources/libraries/robot/hoststack/hoststack.robot b/resources/libraries/robot/hoststack/hoststack.robot index ece1d8a1f4..3be1be545f 100644 --- a/resources/libraries/robot/hoststack/hoststack.robot +++ b/resources/libraries/robot/hoststack/hoststack.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Cisco and/or its affiliates. +# Copyright (c) 2025 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -649,13 +649,15 @@ | | FOR | ${action} | IN | @{stat_pre_trial} | | | Run Keyword | Additional Statistics Action For ${action} | | END -| | ${output}= | Run ab | ${tg} | ${dut_ip_addrs_str} | ${ad_ip_addrs_str} +| | ${status} | ${message}= | Run Keyword And Ignore Error | Run ab +| | ... | ${tg} | ${dut_ip_addrs_str} | ${ad_ip_addrs_str} | | ... | ${tls_tcp} | ${ciphers} | ${files} | ${mode} | ${r_total} | ${c_total} | | ... | ${listen_port} | | FOR | ${action} | IN | @{stat_post_trial} | | | Run Keyword | Additional Statistics Action For ${action} | | END -| | Set test message | ${output} +| | Set test message | ${message} +| | Run Keyword If | "${status}" != "PASS" | Fail | AB failed: ${message} | Configure VPP startup configuration for NGINX | | [Documentation] -- cgit 1.2.3-korg