aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2025-01-09 17:52:45 +0100
committerVratko Polak <vrpolak@cisco.com>2025-01-09 17:52:45 +0100
commite91ff58ea20f8ce0e1726e95c55dfb7331ac0e5c (patch)
tree3c3290a700e6f9df7f119cd7a753e7b9b015cff0
parentf443c73a6c92b6c591f802dfbfe43f995771ed6b (diff)
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 <vrpolak@cisco.com>
-rw-r--r--resources/libraries/robot/hoststack/hoststack.robot8
1 files changed, 5 insertions, 3 deletions
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]